av*dec: Ignore decoding errors

We were ignoring these before the port to 4.0, interpreting them
as GST_FLOW_ERROR / GST_ELEMENT_ERROR causes check failures.

We should start using GST_*_DECODER_ERROR in latter commits,
for now simply restore the previous behaviour.
This commit is contained in:
Mathieu Duponchelle 2018-07-13 17:24:07 +02:00
parent 70d9f923dc
commit dd37a553ac
2 changed files with 4 additions and 6 deletions

View file

@ -580,9 +580,8 @@ gst_ffmpegauddec_audio_frame (GstFFMpegAudDec * ffmpegdec,
GST_WARNING_OBJECT (ffmpegdec,
"Tried to receive frame on a flushed context");
} else if (res < 0) {
*ret = GST_FLOW_ERROR;
GST_ELEMENT_ERROR (ffmpegdec, STREAM, DECODE, ("Decoding problem"),
("Legitimate decoding error"));
*ret = GST_FLOW_OK;
GST_WARNING_OBJECT (ffmpegdec, "Legitimate decoding error");
}
beach:

View file

@ -1490,9 +1490,8 @@ gst_ffmpegviddec_video_frame (GstFFMpegVidDec * ffmpegdec,
"Tried to receive frame on a flushed context");
goto beach;
} else if (res < 0) {
*ret = GST_FLOW_ERROR;
GST_ELEMENT_ERROR (ffmpegdec, STREAM, DECODE, ("Decoding problem"),
("Legitimate decoding error"));
*ret = GST_FLOW_OK;
GST_WARNING_OBJECT (ffmpegdec, "Legitimate decoding error");
goto beach;
}