mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-19 13:55:41 +00:00
opusenc: fix latency query
This makes live 'audiosrc ! opusenc ! opusdec ! audiosink' pipelines actually work without all audio being dumped. https://bugzilla.gnome.org/show_bug.cgi?id=660999
This commit is contained in:
parent
18c2d1ef9f
commit
97d456bad2
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue