mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2025-06-07 16:08:55 +00:00
cdgdec: reset the interpreter when stopping
Fully reset the interpreter state as if we decode later it will be another file.
This commit is contained in:
parent
119afdde2a
commit
ce004a5bac
1 changed files with 8 additions and 0 deletions
|
@ -99,6 +99,14 @@ impl VideoDecoderImpl for CdgDec {
|
||||||
self.parent_start(element)
|
self.parent_start(element)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fn stop(&self, element: &gst_video::VideoDecoder) -> Result<(), gst::ErrorMessage> {
|
||||||
|
{
|
||||||
|
let mut cdg_inter = self.cdg_inter.lock().unwrap();
|
||||||
|
cdg_inter.reset(true);
|
||||||
|
}
|
||||||
|
self.parent_stop(element)
|
||||||
|
}
|
||||||
|
|
||||||
fn handle_frame(
|
fn handle_frame(
|
||||||
&self,
|
&self,
|
||||||
element: &gst_video::VideoDecoder,
|
element: &gst_video::VideoDecoder,
|
||||||
|
|
Loading…
Reference in a new issue