From e7c98453748ac79cf4a93d1d024d09d84852a47e Mon Sep 17 00:00:00 2001 From: gb Date: Thu, 29 Apr 2010 22:00:37 +0000 Subject: [PATCH] Complete initialization of the GstVaapiVideoBuffer. Some frames start to show up. --- gst/vaapidecode/gstvaapidecode.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/gst/vaapidecode/gstvaapidecode.c b/gst/vaapidecode/gstvaapidecode.c index 9600858..762e0ce 100644 --- a/gst/vaapidecode/gstvaapidecode.c +++ b/gst/vaapidecode/gstvaapidecode.c @@ -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) -- 2.7.4