summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2015-02-16 11:35:41 +0200
committerSebastian Dröge <sebastian@centricular.com>2015-02-16 11:35:41 +0200
commit9107a5e041acbad8b16242e73a233fc08f0eecb1 (patch)
treeb455561860afe6551ea790980854773207000a5d
parentee9ca5d48b9c0f0e8b5714a0d08b8915e85e8572 (diff)
pad: Only initialize GValue to a type once, not on every retry
Otherwise we'll get warnings like this: cannot initialize GValue with type 'gboolean', the value has already been initialized as 'gboolean'
-rw-r--r--gst/gstpad.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gst/gstpad.c b/gst/gstpad.c
index 32d67568c..46e7ac467 100644
--- a/gst/gstpad.c
+++ b/gst/gstpad.c
@@ -3111,12 +3111,13 @@ gst_pad_query_latency_default (GstPad * pad, GstQuery * query)
return FALSE;
}
+ g_value_init (&ret, G_TYPE_BOOLEAN);
+
retry:
fold_data.live = FALSE;
fold_data.min = 0;
fold_data.max = GST_CLOCK_TIME_NONE;
- g_value_init (&ret, G_TYPE_BOOLEAN);
g_value_set_boolean (&ret, FALSE);
res = gst_iterator_fold (it, query_latency_default_fold, &ret, &fold_data);
switch (res) {