From 24527856cb1e3f220830bf31a6d598ffd3b53d2d Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=ADctor=20Manuel=20J=C3=A1quez=20Leal?= Date: Wed, 25 May 2022 13:25:15 +0200 Subject: [PATCH] vacompositor: Pass video info pointer than copying it. Part-of: --- subprojects/gst-plugins-bad/sys/va/gstvacompositor.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/subprojects/gst-plugins-bad/sys/va/gstvacompositor.c b/subprojects/gst-plugins-bad/sys/va/gstvacompositor.c index a11e18e..6477bff 100644 --- a/subprojects/gst-plugins-bad/sys/va/gstvacompositor.c +++ b/subprojects/gst-plugins-bad/sys/va/gstvacompositor.c @@ -896,7 +896,7 @@ _try_import_dmabuf_unlocked (GstVaCompositor * self, GstVideoInfo * info, extern GRecMutex GST_VA_SHARED_LOCK; static gboolean -_try_import_buffer (GstVaCompositor * self, GstVideoInfo info, +_try_import_buffer (GstVaCompositor * self, GstVideoInfo * info, GstBuffer * inbuf) { VASurfaceID surface; @@ -907,7 +907,7 @@ _try_import_buffer (GstVaCompositor * self, GstVideoInfo info, return TRUE; g_rec_mutex_lock (&GST_VA_SHARED_LOCK); - ret = _try_import_dmabuf_unlocked (self, &info, inbuf); + ret = _try_import_dmabuf_unlocked (self, info, inbuf); g_rec_mutex_unlock (&GST_VA_SHARED_LOCK); return ret; @@ -935,7 +935,7 @@ gst_va_compositor_import_buffer (GstVaCompositor * self, } gst_caps_unref (caps); - imported = _try_import_buffer (self, info, inbuf); + imported = _try_import_buffer (self, &info, inbuf); if (imported) { *buf = gst_buffer_ref (inbuf); return GST_FLOW_OK; -- 2.7.4