dshowdecwrapper: reset flow return state tracker after flush to avoid spurious
errors after flushing in some cases.
This commit is contained in:
parent
191c2d38ea
commit
f1ff58039a
@ -925,6 +925,9 @@ gst_dshowvideodec_flush (GstDshowVideoDec * vdec)
|
|||||||
/* flush dshow decoder and reset timestamp */
|
/* flush dshow decoder and reset timestamp */
|
||||||
vdec->fakesrc->GetOutputPin()->Flush();
|
vdec->fakesrc->GetOutputPin()->Flush();
|
||||||
|
|
||||||
|
/* Reset the flow return state tracker */
|
||||||
|
vdec->last_ret = GST_FLOW_OK;
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user