mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
ges-uri-asset: fix compile error 'timeout' may be used uninitialized
https://bugzilla.gnome.org/show_bug.cgi?id=774751
This commit is contained in:
parent
b5cda44417
commit
be48b040ea
1 changed files with 4 additions and 1 deletions
|
@ -33,6 +33,8 @@
|
|||
#include "ges-internal.h"
|
||||
#include "ges-track-element-asset.h"
|
||||
|
||||
#define DEFAULT_DISCOVERY_TIMEOUT (60 * GST_SECOND)
|
||||
|
||||
static GHashTable *parent_newparent_table = NULL;
|
||||
|
||||
static void
|
||||
|
@ -207,6 +209,7 @@ ges_uri_clip_asset_class_init (GESUriClipAssetClass * klass)
|
|||
g_object_class_install_property (object_class, PROP_DURATION,
|
||||
properties[PROP_DURATION]);
|
||||
|
||||
timeout = DEFAULT_DISCOVERY_TIMEOUT;
|
||||
errno = 0;
|
||||
timeout_str = g_getenv ("GES_DISCOVERY_TIMEOUT");
|
||||
if (timeout_str)
|
||||
|
@ -215,7 +218,7 @@ ges_uri_clip_asset_class_init (GESUriClipAssetClass * klass)
|
|||
errno = 10;
|
||||
|
||||
if (errno)
|
||||
timeout = 60 * GST_SECOND;
|
||||
timeout = DEFAULT_DISCOVERY_TIMEOUT;
|
||||
|
||||
klass->discoverer = gst_discoverer_new (timeout, &err);
|
||||
if (!klass->discoverer) {
|
||||
|
|
Loading…
Reference in a new issue