mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-12 02:15:31 +00:00
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'
This commit is contained in:
parent
ee9ca5d48b
commit
9107a5e041
1 changed files with 2 additions and 1 deletions
|
@ -3111,12 +3111,13 @@ gst_pad_query_latency_default (GstPad * pad, GstQuery * query)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
g_value_init (&ret, G_TYPE_BOOLEAN);
|
||||||
|
|
||||||
retry:
|
retry:
|
||||||
fold_data.live = FALSE;
|
fold_data.live = FALSE;
|
||||||
fold_data.min = 0;
|
fold_data.min = 0;
|
||||||
fold_data.max = GST_CLOCK_TIME_NONE;
|
fold_data.max = GST_CLOCK_TIME_NONE;
|
||||||
|
|
||||||
g_value_init (&ret, G_TYPE_BOOLEAN);
|
|
||||||
g_value_set_boolean (&ret, FALSE);
|
g_value_set_boolean (&ret, FALSE);
|
||||||
res = gst_iterator_fold (it, query_latency_default_fold, &ret, &fold_data);
|
res = gst_iterator_fold (it, query_latency_default_fold, &ret, &fold_data);
|
||||||
switch (res) {
|
switch (res) {
|
||||||
|
|
Loading…
Reference in a new issue