mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 16:50:47 +00:00
vacompositor: Pass video info pointer than copying it.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2496>
This commit is contained in:
parent
f9b631e0ea
commit
24527856cb
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue