From 51e083fe8d439bcb47bde06eda58cf0dee40cffe Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sebastian=20Dr=C3=B6ge?= Date: Tue, 21 Sep 2010 12:29:06 +0200 Subject: [PATCH] dshowdecwrapper: Don't use GST_FLOW_IS_FATAL() And don't error out on UNEXPECTED --- sys/dshowdecwrapper/gstdshowaudiodec.cpp | 2 +- sys/dshowdecwrapper/gstdshowvideodec.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/dshowdecwrapper/gstdshowaudiodec.cpp b/sys/dshowdecwrapper/gstdshowaudiodec.cpp index 011a572..1f4bd98 100644 --- a/sys/dshowdecwrapper/gstdshowaudiodec.cpp +++ b/sys/dshowdecwrapper/gstdshowaudiodec.cpp @@ -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; diff --git a/sys/dshowdecwrapper/gstdshowvideodec.cpp b/sys/dshowdecwrapper/gstdshowvideodec.cpp index 8a2e614..6be02fe 100644 --- a/sys/dshowdecwrapper/gstdshowvideodec.cpp +++ b/sys/dshowdecwrapper/gstdshowvideodec.cpp @@ -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; -- 2.7.4