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:
Michael Olbrich 2015-01-27 16:06:02 +02:00 committed by Sreerenj Balachandran
parent b7d7a0197d
commit 22d1acb6d2

View file

@ -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;
}