mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-23 15:48:23 +00:00
plugins: use GstParentBufferMeta
Instead of using the VASurface proxy's notify, which is internal gstvaapi API, use the GStreamer's GstParentBufferMeta. https://bugzilla.gnome.org/show_bug.cgi?id=765435
This commit is contained in:
parent
8292acfdd4
commit
8d7a0ae16c
1 changed files with 1 additions and 3 deletions
|
@ -234,11 +234,9 @@ plugin_bind_dma_to_vaapi_buffer (GstVaapiPluginBase * plugin,
|
|||
proxy = gst_vaapi_surface_proxy_new (surface);
|
||||
if (!proxy)
|
||||
goto error_create_proxy;
|
||||
|
||||
gst_vaapi_surface_proxy_set_destroy_notify (proxy,
|
||||
(GDestroyNotify) gst_buffer_unref, (gpointer) gst_buffer_ref (inbuf));
|
||||
gst_vaapi_video_meta_set_surface_proxy (meta, proxy);
|
||||
gst_vaapi_surface_proxy_unref (proxy);
|
||||
gst_buffer_add_parent_buffer_meta (outbuf, inbuf);
|
||||
return TRUE;
|
||||
|
||||
/* ERRORS */
|
||||
|
|
Loading…
Reference in a new issue