diff options
author | Gwenole Beauchesne <gwenole.beauchesne@intel.com> | 2013-04-25 14:16:01 +0200 |
---|---|---|
committer | Gwenole Beauchesne <gwenole.beauchesne@intel.com> | 2013-04-25 14:20:55 +0200 |
commit | 5ea1a675ab3f8c60f606e99a9c5737af9a51541f (patch) | |
tree | 98ab54307d18dd58f83791ea0327c14d91b026ed /gst-libs | |
parent | c43a2d497a78a0e168ee11d2172ff6f8a426913b (diff) |
decoder: fix raw decoding mode.
Fix gst_vaapi_decoder_get_surface() to actually transfer ownership of the
surface proxy to the caller.
Diffstat (limited to 'gst-libs')
-rw-r--r-- | gst-libs/gst/vaapi/gstvaapidecoder.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gst-libs/gst/vaapi/gstvaapidecoder.c b/gst-libs/gst/vaapi/gstvaapidecoder.c index 9df3554e..b41d3f91 100644 --- a/gst-libs/gst/vaapi/gstvaapidecoder.c +++ b/gst-libs/gst/vaapi/gstvaapidecoder.c @@ -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; } |