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:
0c25863
)
goom: Don't answer lantency queries before negotiation
author
David Schleef
<ds@schleef.org>
Mon, 4 Jul 2011 19:58:38 +0000
(12:58 -0700)
committer
David Schleef
<ds@schleef.org>
Mon, 4 Jul 2011 19:59:50 +0000
(12:59 -0700)
gst/goom/gstgoom.c
patch
|
blob
|
history
diff --git
a/gst/goom/gstgoom.c
b/gst/goom/gstgoom.c
index
30a6c8c
..
c8e13ed
100644
(file)
--- a/
gst/goom/gstgoom.c
+++ b/
gst/goom/gstgoom.c
@@
-400,7
+400,7
@@
gst_goom_sink_event (GstPad * pad, GstEvent * event)
static gboolean
gst_goom_src_query (GstPad * pad, GstQuery * query)
{
- gboolean res;
+ gboolean res
= FALSE
;
GstGoom *goom;
goom = GST_GOOM (gst_pad_get_parent (pad));
@@
-415,6
+415,9
@@
gst_goom_src_query (GstPad * pad, GstQuery * query)
GstClockTime our_latency;
guint max_samples;
+ if (goom->rate == 0)
+ break;
+
if ((res = gst_pad_peer_query (goom->sinkpad, query))) {
gst_query_parse_latency (query, &us_live, &min_latency, &max_latency);