display: make cache maintenance really MT-safe.
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>
Fri, 7 Mar 2014 13:50:14 +0000 (14:50 +0100)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Wed, 21 May 2014 17:59:52 +0000 (19:59 +0200)
commit71053228b3dc9292130c0108ea2004cd40d8e0bc
treeea9e4c954c0c0c09c755cc4714e3b5435b2ab24d
parent446aa9acf8eb2b142121e7b3be65fd35df324724
display: make cache maintenance really MT-safe.

Make sure to initialize one GstVaapiDisplay at a time, even in threaded
environments. This makes sure the display cache is also consistent
during the whole display creation process. In the former implementation,
there were risks that display cache got updated in another thread.
gst-libs/gst/vaapi/gstvaapidisplay.c
gst-libs/gst/vaapi/gstvaapidisplay_drm.c
gst-libs/gst/vaapi/gstvaapidisplay_priv.h
gst-libs/gst/vaapi/gstvaapidisplay_wayland.c
gst-libs/gst/vaapi/gstvaapidisplay_x11.c
gst-libs/gst/vaapi/gstvaapidisplaycache.c
gst-libs/gst/vaapi/gstvaapidisplaycache.h