From be48b040ea2d0bcbd47dc2ed2c30d4201b8bf50e Mon Sep 17 00:00:00 2001 From: Philippe Renon Date: Sun, 20 Nov 2016 15:34:46 +0100 Subject: [PATCH] ges-uri-asset: fix compile error 'timeout' may be used uninitialized https://bugzilla.gnome.org/show_bug.cgi?id=774751 --- ges/ges-uri-asset.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ges/ges-uri-asset.c b/ges/ges-uri-asset.c index e8de919ad7..1b8294909f 100644 --- a/ges/ges-uri-asset.c +++ b/ges/ges-uri-asset.c @@ -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) {