decoder: fix raw decoding mode.
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>
Thu, 25 Apr 2013 12:16:01 +0000 (14:16 +0200)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Thu, 25 Apr 2013 12:20:55 +0000 (14:20 +0200)
Fix gst_vaapi_decoder_get_surface() to actually transfer ownership of the
surface proxy to the caller.

gst-libs/gst/vaapi/gstvaapidecoder.c

index 9df3554e4dcbf03eb7e37200e9869502297fe83c..b41d3f91d87ee6548e4bda2058a1d1e5d39b71ea 100644 (file)
@@ -700,7 +700,7 @@ gst_vaapi_decoder_get_surface(GstVaapiDecoder *decoder,
                 GstVaapiSurfaceProxy * const proxy = frame->user_data;
                 proxy->timestamp = frame->pts;
                 proxy->duration = frame->duration;
-                *out_proxy_ptr = proxy;
+                *out_proxy_ptr = gst_vaapi_surface_proxy_ref(proxy);
                 gst_video_codec_frame_unref(frame);
                 return GST_VAAPI_DECODER_STATUS_SUCCESS;
             }