vaapidecode: adopt non-deprecrated glib locking primitive pattern.
authorRob Bradford <rob@linux.intel.com>
Thu, 4 Oct 2012 16:39:53 +0000 (17:39 +0100)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Wed, 17 Oct 2012 13:21:00 +0000 (15:21 +0200)
commit4bcfa3fe0a482b2d7b0609704e9683038216b5e3
tree3c97f32125b49a876f9e726e16b91977af1ed9b9
parent7d1b583d91db83c3f9d96ae866bca16d8dc8c914
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.
gst/vaapi/gstvaapidecode.c
gst/vaapi/gstvaapidecode.h