dshowdecwrapper: reset flow return state tracker after flush to avoid spurious
authorMichael Smith <msmith@songbirdnest.com>
Wed, 7 Jul 2010 17:33:18 +0000 (10:33 -0700)
committerMichael Smith <msmith@songbirdnest.com>
Wed, 7 Jul 2010 17:34:51 +0000 (10:34 -0700)
errors after flushing in some cases.

sys/dshowdecwrapper/gstdshowvideodec.cpp

index c73aa9c..8a2e614 100644 (file)
@@ -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;
 }