[Libva] [PATCH 2/2] vaapidecode: Adopt non-deprecrated glib locking primitive pattern
robert.bradford at intel.com
Mon Oct 15 05:55:07 PDT 2012
On 4 October 2012 17:39, Rob Bradford <robert.bradford at intel.com> wrote:
> From: Rob Bradford <rob at linux.intel.com>
> 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.
I wrote this patch to silence the warnings that were generated. Would
be good to see this tested and land (now that the release has been
More information about the Libva