Commit be48b040 authored by Philippe Renon's avatar Philippe Renon Committed by Sebastian Dröge
Browse files

ges-uri-asset: fix compile error 'timeout' may be used uninitialized

https://bugzilla.gnome.org/show_bug.cgi?id=774751
parent b5cda444
......@@ -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) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment