dshowdecwrapper: Don't use GST_FLOW_IS_FATAL()

And don't error out on UNEXPECTED
This commit is contained in:
Sebastian Dröge 2010-09-21 12:29:06 +02:00
parent 4376506183
commit 51e083fe8d
2 changed files with 2 additions and 2 deletions

View file

@ -519,7 +519,7 @@ gst_dshowaudiodec_chain (GstPad * pad, GstBuffer * buffer)
goto beach;
}
if (GST_FLOW_IS_FATAL (adec->last_ret)) {
if (adec->last_ret < GST_FLOW_UNEXPECTED) {
GST_DEBUG_OBJECT (adec, "last decoding iteration generated a fatal error "
"%s", gst_flow_get_name (adec->last_ret));
goto beach;

View file

@ -793,7 +793,7 @@ gst_dshowvideodec_chain (GstPad * pad, GstBuffer * buffer)
goto beach;
}
if (GST_FLOW_IS_FATAL (vdec->last_ret)) {
if (vdec->last_ret < GST_FLOW_UNEXPECTED) {
GST_DEBUG_OBJECT (vdec, "last decoding iteration generated a fatal error "
"%s", gst_flow_get_name (vdec->last_ret));
goto beach;