diff --git a/ext/libav/gstavviddec.c b/ext/libav/gstavviddec.c index 8ebe047d02..c5b7a3f684 100644 --- a/ext/libav/gstavviddec.c +++ b/ext/libav/gstavviddec.c @@ -1378,6 +1378,10 @@ no_output: negotiation_error: { + if (GST_PAD_IS_FLUSHING (GST_VIDEO_DECODER_SRC_PAD (ffmpegdec))) { + *ret = GST_FLOW_FLUSHING; + goto beach; + } GST_WARNING_OBJECT (ffmpegdec, "Error negotiating format"); *ret = GST_FLOW_NOT_NEGOTIATED; goto beach;