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
@ -1033,6 +1033,9 @@ gst_audio_decoder_finish_frame (GstAudioDecoder * dec, GstBuffer * buf,
|
|||||||
(GST_AUDIO_INFO_IS_VALID (&ctx->info)
|
(GST_AUDIO_INFO_IS_VALID (&ctx->info)
|
||||||
&& gst_pad_check_reconfigure (dec->srcpad)))) {
|
&& gst_pad_check_reconfigure (dec->srcpad)))) {
|
||||||
if (!gst_audio_decoder_negotiate (dec)) {
|
if (!gst_audio_decoder_negotiate (dec)) {
|
||||||
|
if (GST_PAD_IS_FLUSHING (dec->srcpad))
|
||||||
|
ret = GST_FLOW_FLUSHING;
|
||||||
|
else
|
||||||
ret = GST_FLOW_NOT_NEGOTIATED;
|
ret = GST_FLOW_NOT_NEGOTIATED;
|
||||||
goto exit;
|
goto exit;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user