projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f2b27d3
)
pad: If the latency query fails for one of the pads, it fails overall
author
Sebastian Dröge
<sebastian@centricular.com>
Wed, 18 Feb 2015 23:12:49 +0000
(
01:12
+0200)
committer
Sebastian Dröge
<sebastian@centricular.com>
Wed, 18 Feb 2015 23:12:49 +0000
(
01:12
+0200)
gst/gstpad.c
patch
|
blob
|
history
diff --git
a/gst/gstpad.c
b/gst/gstpad.c
index
46e7ac4
..
0d28484
100644
(file)
--- a/
gst/gstpad.c
+++ b/
gst/gstpad.c
@@
-3089,7
+3089,9
@@
query_latency_default_fold (const GValue * item, GValue * ret,
fold_data->live = TRUE;
}
- g_value_set_boolean (ret, TRUE);
+ } else {
+ GST_DEBUG_OBJECT (pad, "latency query failed");
+ g_value_set_boolean (ret, FALSE);
}
gst_query_unref (query);
@@
-3118,7
+3120,7
@@
retry:
fold_data.min = 0;
fold_data.max = GST_CLOCK_TIME_NONE;
- g_value_set_boolean (&ret,
FALS
E);
+ g_value_set_boolean (&ret,
TRU
E);
res = gst_iterator_fold (it, query_latency_default_fold, &ret, &fold_data);
switch (res) {
case GST_ITERATOR_OK: