mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 07:47:17 +00:00
audiodecoder: Don't return not-negotiated if flushing
If the pad is flushing after a failed negotiation, return GST_FLOW_FLUSHING. https://bugzilla.gnome.org/show_bug.cgi?id=701763
This commit is contained in:
parent
748cbbd76e
commit
97e68b36c7
1 changed files with 4 additions and 1 deletions
|
@ -1033,7 +1033,10 @@ gst_audio_decoder_finish_frame (GstAudioDecoder * dec, GstBuffer * buf,
|
|||
(GST_AUDIO_INFO_IS_VALID (&ctx->info)
|
||||
&& gst_pad_check_reconfigure (dec->srcpad)))) {
|
||||
if (!gst_audio_decoder_negotiate (dec)) {
|
||||
ret = GST_FLOW_NOT_NEGOTIATED;
|
||||
if (GST_PAD_IS_FLUSHING (dec->srcpad))
|
||||
ret = GST_FLOW_FLUSHING;
|
||||
else
|
||||
ret = GST_FLOW_NOT_NEGOTIATED;
|
||||
goto exit;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue