mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 10:41:04 +00:00
Complete initialization of the GstVaapiVideoBuffer. Some frames start to show up.
This commit is contained in:
parent
73b50487f3
commit
e7c9845374
1 changed files with 10 additions and 1 deletions
|
@ -105,11 +105,20 @@ gst_vaapidecode_task_cb(gpointer data)
|
|||
return;
|
||||
|
||||
buffer = NULL;
|
||||
ret = gst_pad_alloc_buffer(decode->srcpad, 0, 0, GST_PAD_CAPS(decode->srcpad), &buffer);
|
||||
ret = gst_pad_alloc_buffer(
|
||||
decode->srcpad,
|
||||
0, 0,
|
||||
GST_PAD_CAPS(decode->srcpad),
|
||||
&buffer
|
||||
);
|
||||
if (ret != GST_FLOW_OK || !buffer)
|
||||
goto error_create_buffer;
|
||||
|
||||
GST_BUFFER_TIMESTAMP(buffer) = GST_VAAPI_SURFACE_PROXY_TIMESTAMP(proxy);
|
||||
gst_vaapi_video_buffer_set_surface_proxy(
|
||||
GST_VAAPI_VIDEO_BUFFER(buffer),
|
||||
proxy
|
||||
);
|
||||
|
||||
ret = gst_pad_push(decode->srcpad, buffer);
|
||||
if (ret != GST_FLOW_OK)
|
||||
|
|
Loading…
Reference in a new issue