diff options
author | Scott D Phillips <scott.d.phillips@intel.com> | 2016-06-07 14:19:50 -0700 |
---|---|---|
committer | Víctor Manuel Jáquez Leal <victorx.jaquez@intel.com> | 2016-06-08 10:03:59 +0200 |
commit | 4791e9f2ea3537f2b9f7b36b1f79d87c3e73f08f (patch) | |
tree | 5862d390ed229c5fb0968c43fdf9f4dada819c8f /gst/vaapi/gstvaapipostproc.h | |
parent | 76c2e5fdb5095e67067572725897faa7b833d76a (diff) |
vaapipostproc: add postproc_lock to protect data members
Add a mutex to postproc to protect concurrent access to data members.
Previously set_caps() could release the allowed_srcpad_caps while
transform_caps was in the middle of using it.
Signed-off-by: Scott D Phillips <scott.d.phillips@intel.com>
https://bugzilla.gnome.org/show_bug.cgi?id=766940
Diffstat (limited to 'gst/vaapi/gstvaapipostproc.h')
-rw-r--r-- | gst/vaapi/gstvaapipostproc.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gst/vaapi/gstvaapipostproc.h b/gst/vaapi/gstvaapipostproc.h index a4299756..d829ab1c 100644 --- a/gst/vaapi/gstvaapipostproc.h +++ b/gst/vaapi/gstvaapipostproc.h @@ -134,6 +134,7 @@ struct _GstVaapiPostproc /*< private >*/ GstVaapiPluginBase parent_instance; + GMutex postproc_lock; GstVaapiFilter *filter; GPtrArray *filter_ops; GstVaapiVideoPool *filter_pool; |