opusenc: fix latency query
authorVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Wed, 5 Oct 2011 17:25:58 +0000 (18:25 +0100)
committerVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Mon, 7 Nov 2011 11:21:27 +0000 (11:21 +0000)
This makes live 'audiosrc ! opusenc ! opusdec ! audiosink' pipelines
actually work without all audio being dumped.

https://bugzilla.gnome.org/show_bug.cgi?id=660999

ext/opus/gstopusenc.c

index f25cbca..51ae5c2 100644 (file)
@@ -534,7 +534,7 @@ gst_opus_enc_src_query (GstPad * pad, GstQuery * query)
       GstClockTime min_latency, max_latency;
       gint64 latency;
 
-      if ((res = gst_pad_peer_query (pad, query))) {
+      if ((res = gst_pad_peer_query (enc->sinkpad, query))) {
         gst_query_parse_latency (query, &live, &min_latency, &max_latency);
 
         latency = gst_opus_enc_get_latency (enc);