mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-16 21:36:35 +00:00
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:
parent
70d9f923dc
commit
dd37a553ac
2 changed files with 4 additions and 6 deletions
|
@ -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:
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue