mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-15 06:40:08 +00:00
gstsink: Don't use g_autoptr
This commit is contained in:
parent
2a9056b49e
commit
25268c2086
@ -379,7 +379,7 @@ gtk_gst_sink_texture_from_buffer (GtkGstSink *self,
|
|||||||
#ifdef HAVE_GSTREAMER_DRM
|
#ifdef HAVE_GSTREAMER_DRM
|
||||||
if (gst_is_dmabuf_memory (gst_buffer_peek_memory (buffer, 0)))
|
if (gst_is_dmabuf_memory (gst_buffer_peek_memory (buffer, 0)))
|
||||||
{
|
{
|
||||||
g_autoptr (GdkDmabufTextureBuilder) builder = NULL;
|
GdkDmabufTextureBuilder *builder = NULL;
|
||||||
const GstVideoMeta *vmeta = gst_buffer_get_video_meta (buffer);
|
const GstVideoMeta *vmeta = gst_buffer_get_video_meta (buffer);
|
||||||
GError *error = NULL;
|
GError *error = NULL;
|
||||||
int i;
|
int i;
|
||||||
@ -427,6 +427,7 @@ gtk_gst_sink_texture_from_buffer (GtkGstSink *self,
|
|||||||
(GDestroyNotify) gst_buffer_unref,
|
(GDestroyNotify) gst_buffer_unref,
|
||||||
gst_buffer_ref (buffer),
|
gst_buffer_ref (buffer),
|
||||||
&error);
|
&error);
|
||||||
|
g_object_unref (builder);
|
||||||
if (!texture)
|
if (!texture)
|
||||||
GST_ERROR_OBJECT (self, "Failed to create dmabuf texture: %s", error->message);
|
GST_ERROR_OBJECT (self, "Failed to create dmabuf texture: %s", error->message);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user