diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2018-11-14 11:34:20 +0100 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2019-05-09 01:03:17 +0200 |
commit | 10dd87ae96acc0b1359d8e64fe1793cd5462eb6f (patch) | |
tree | cfbc246e0c1bab0455c9e8123443e4e215a1b89d | |
parent | ae831f7b415a9af019a73647cefa439852226448 (diff) |
vaapipostproc: add some missing locking
gst_vaapi_plugin_base_close() removed the raw caps that are used indirectly
in gst_vaapipostproc_transform_caps(). The usage is already protected by
the mutex.
This is needed when the pipeline is stopped during startup.
-rw-r--r-- | gst/vaapi/gstvaapipostproc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gst/vaapi/gstvaapipostproc.c b/gst/vaapi/gstvaapipostproc.c index 2b888214..21ff15da 100644 --- a/gst/vaapi/gstvaapipostproc.c +++ b/gst/vaapi/gstvaapipostproc.c @@ -318,6 +318,7 @@ gst_vaapipostproc_stop (GstBaseTransform * trans) { GstVaapiPostproc *const postproc = GST_VAAPIPOSTPROC (trans); + g_mutex_lock (&postproc->postproc_lock); ds_reset (&postproc->deinterlace_state); gst_vaapi_plugin_base_close (GST_VAAPI_PLUGIN_BASE (postproc)); @@ -325,6 +326,7 @@ gst_vaapipostproc_stop (GstBaseTransform * trans) gst_video_info_init (&postproc->sinkpad_info); gst_video_info_init (&postproc->srcpad_info); gst_video_info_init (&postproc->filter_pool_info); + g_mutex_unlock (&postproc->postproc_lock); return TRUE; } |