From 22d1acb6d2f754fb851bd0f2fc535adf81b37d0b Mon Sep 17 00:00:00 2001 From: Michael Olbrich Date: Tue, 27 Jan 2015 16:06:02 +0200 Subject: [PATCH] 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() --- gst/vaapi/gstvaapipostproc.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gst/vaapi/gstvaapipostproc.c b/gst/vaapi/gstvaapipostproc.c index 2d051c8..756491b 100644 --- a/gst/vaapi/gstvaapipostproc.c +++ b/gst/vaapi/gstvaapipostproc.c @@ -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; } -- 2.7.4