summaryrefslogtreecommitdiff
path: root/gst/vaapi/gstvaapidecode.h
diff options
context:
space:
mode:
authorRob Bradford <rob@linux.intel.com>2012-10-04 17:39:53 +0100
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>2012-12-17 14:56:11 +0100
commitf17ac52573dae91eb524e570ac374778fb42a50d (patch)
treef16d08253bd99ec94e36901271a7c9604b91f4c5 /gst/vaapi/gstvaapidecode.h
parent72f045bedd8c64d7b82429a2373d3d61bc2ef0fa (diff)
vaapidecode: adopt non-deprecrated glib locking primitive pattern.
The use of heap allocated GMutex/GCond is deprecated. Instead place them inside the structure they are locking. These changes switch to use g_mutex_init/g_cond_init rather than the heap allocation functions. Because we cannot test for a NULL pointer for the GMutex/GCond we must initialise inside the GObject _init function and clear inside the _finalize which is guaranteed to only be called once and after the object is no longer in use.
Diffstat (limited to 'gst/vaapi/gstvaapidecode.h')
-rw-r--r--gst/vaapi/gstvaapidecode.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/gst/vaapi/gstvaapidecode.h b/gst/vaapi/gstvaapidecode.h
index 68799df5..87e28072 100644
--- a/gst/vaapi/gstvaapidecode.h
+++ b/gst/vaapi/gstvaapidecode.h
@@ -67,8 +67,8 @@ struct _GstVaapiDecode {
GstCaps *srcpad_caps;
GstVaapiDisplay *display;
GstVaapiDecoder *decoder;
- GMutex *decoder_mutex;
- GCond *decoder_ready;
+ GMutex decoder_mutex;
+ GCond decoder_ready;
GstCaps *decoder_caps;
GstCaps *allowed_caps;
GstEvent *delayed_new_seg;