From f1ff58039a42bb2ad6ab0d0cccc6470498713710 Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Wed, 7 Jul 2010 10:33:18 -0700 Subject: [PATCH] dshowdecwrapper: reset flow return state tracker after flush to avoid spurious errors after flushing in some cases. --- sys/dshowdecwrapper/gstdshowvideodec.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sys/dshowdecwrapper/gstdshowvideodec.cpp b/sys/dshowdecwrapper/gstdshowvideodec.cpp index c73aa9c52b..8a2e614231 100644 --- a/sys/dshowdecwrapper/gstdshowvideodec.cpp +++ b/sys/dshowdecwrapper/gstdshowvideodec.cpp @@ -925,6 +925,9 @@ gst_dshowvideodec_flush (GstDshowVideoDec * vdec) /* flush dshow decoder and reset timestamp */ vdec->fakesrc->GetOutputPin()->Flush(); + /* Reset the flow return state tracker */ + vdec->last_ret = GST_FLOW_OK; + return TRUE; } -- 2.34.1