Complete initialization of the GstVaapiVideoBuffer. Some frames start to show up.
authorgb <gb@5584edef-b1fe-4b99-b61b-dd2bab72e969>
Thu, 29 Apr 2010 22:00:37 +0000 (22:00 +0000)
committerGwenole Beauchesne <gbeauchesne@splitted-desktop.com>
Mon, 20 Sep 2010 10:55:41 +0000 (12:55 +0200)
gst/vaapidecode/gstvaapidecode.c

index 9600858..762e0ce 100644 (file)
@@ -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)