summaryrefslogtreecommitdiff
path: root/sys/dshowdecwrapper
diff options
context:
space:
mode:
authorMichael Smith <msmith@songbirdnest.com>2010-07-07 10:33:18 -0700
committerMichael Smith <msmith@songbirdnest.com>2010-07-07 10:34:51 -0700
commitf1ff58039a42bb2ad6ab0d0cccc6470498713710 (patch)
treee2f614fb1de0ae5c25c8ee91013350c5ea2db234 /sys/dshowdecwrapper
parent191c2d38eaf23ad023611e600d637d834d8961d8 (diff)
downloadgstreamer-plugins-bad-f1ff58039a42bb2ad6ab0d0cccc6470498713710.tar.gz
dshowdecwrapper: reset flow return state tracker after flush to avoid spurious
errors after flushing in some cases.
Diffstat (limited to 'sys/dshowdecwrapper')
-rw-r--r--sys/dshowdecwrapper/gstdshowvideodec.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/dshowdecwrapper/gstdshowvideodec.cpp b/sys/dshowdecwrapper/gstdshowvideodec.cpp
index c73aa9c52..8a2e61423 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;
}