mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-10 03:19:40 +00:00
plugins: make it possible to clear VA objects from GstVaapiVideoMeta.
Fix GstVaapiVideoMeta to allow VA objects to be destroyed when they are reset to NULL. i.e. make gst_vaapi_video_meta_set_{image,surface}() and gst_vaapi_video_meta_set_surface_proxy() actually clear VA objects when argument is NULL.
This commit is contained in:
parent
38d84d968e
commit
8fe0011450
1 changed files with 0 additions and 3 deletions
|
@ -424,7 +424,6 @@ void
|
||||||
gst_vaapi_video_meta_set_image(GstVaapiVideoMeta *meta, GstVaapiImage *image)
|
gst_vaapi_video_meta_set_image(GstVaapiVideoMeta *meta, GstVaapiImage *image)
|
||||||
{
|
{
|
||||||
g_return_if_fail(GST_VAAPI_IS_VIDEO_META(meta));
|
g_return_if_fail(GST_VAAPI_IS_VIDEO_META(meta));
|
||||||
g_return_if_fail(GST_VAAPI_IS_IMAGE(image));
|
|
||||||
|
|
||||||
gst_vaapi_video_meta_destroy_image(meta);
|
gst_vaapi_video_meta_destroy_image(meta);
|
||||||
|
|
||||||
|
@ -497,7 +496,6 @@ gst_vaapi_video_meta_set_surface(GstVaapiVideoMeta *meta,
|
||||||
GstVaapiSurface *surface)
|
GstVaapiSurface *surface)
|
||||||
{
|
{
|
||||||
g_return_if_fail(GST_VAAPI_IS_VIDEO_META(meta));
|
g_return_if_fail(GST_VAAPI_IS_VIDEO_META(meta));
|
||||||
g_return_if_fail(GST_VAAPI_IS_SURFACE(surface));
|
|
||||||
|
|
||||||
gst_vaapi_video_meta_destroy_surface(meta);
|
gst_vaapi_video_meta_destroy_surface(meta);
|
||||||
|
|
||||||
|
@ -572,7 +570,6 @@ gst_vaapi_video_meta_set_surface_proxy(GstVaapiVideoMeta *meta,
|
||||||
GstVaapiSurface *surface;
|
GstVaapiSurface *surface;
|
||||||
|
|
||||||
g_return_if_fail(GST_VAAPI_IS_VIDEO_META(meta));
|
g_return_if_fail(GST_VAAPI_IS_VIDEO_META(meta));
|
||||||
g_return_if_fail(proxy != NULL);
|
|
||||||
|
|
||||||
gst_vaapi_video_meta_destroy_surface(meta);
|
gst_vaapi_video_meta_destroy_surface(meta);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue