overlay: simplify caching of GstVideoOverlayComposition objects.
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>
Thu, 10 Jan 2013 12:41:39 +0000 (13:41 +0100)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Fri, 11 Jan 2013 14:28:25 +0000 (15:28 +0100)
commitad6cdc0b52e8d738ebe65dbfe0bdba0c65a0b551
tree51bf0029beb3e02e733284033651643130e056fd
parent2d2334afed32abdcaf9396edb5fa8a3f27ea0db1
overlay: simplify caching of GstVideoOverlayComposition objects.

Create the GPtrArray once in the _init() function and destroy it only
in the _finalize() function. Then use overlay_clear() to remove all
subpicture associations for intermediate updates, don't recreate the
GPtrArray.

Make GstVaapiOverlayRectangle a reference counted object. Also make
sure that overlay_rectangle_new() actually creates and associates the
VA subpicture.
gst-libs/gst/vaapi/gstvaapicontext.c