mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-28 11:10:37 +00:00
vaapipostproc: clear state on stop
Otherwise restarting may fail because the state of vaapipluginbase and vaapipostproc don't match. e.g. gst_vaapipostproc_set_caps() will skip initailization and not call gst_vaapi_plugin_base_set_caps()
This commit is contained in:
parent
b7d7a0197d
commit
22d1acb6d2
1 changed files with 6 additions and 0 deletions
|
@ -334,6 +334,12 @@ gst_vaapipostproc_stop (GstBaseTransform * trans)
|
|||
ds_reset (&postproc->deinterlace_state);
|
||||
gst_vaapi_plugin_base_close (GST_VAAPI_PLUGIN_BASE (postproc));
|
||||
postproc->filter_pool_active = FALSE;
|
||||
|
||||
postproc->field_duration = GST_CLOCK_TIME_NONE;
|
||||
gst_video_info_init(&postproc->sinkpad_info);
|
||||
gst_video_info_init(&postproc->srcpad_info);
|
||||
gst_video_info_init(&postproc->filter_pool_info);
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue