mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
decoder: fix raw decoding mode.
Fix gst_vaapi_decoder_get_surface() to actually transfer ownership of the surface proxy to the caller.
This commit is contained in:
parent
c43a2d497a
commit
5ea1a675ab
1 changed files with 1 additions and 1 deletions
|
@ -700,7 +700,7 @@ gst_vaapi_decoder_get_surface(GstVaapiDecoder *decoder,
|
||||||
GstVaapiSurfaceProxy * const proxy = frame->user_data;
|
GstVaapiSurfaceProxy * const proxy = frame->user_data;
|
||||||
proxy->timestamp = frame->pts;
|
proxy->timestamp = frame->pts;
|
||||||
proxy->duration = frame->duration;
|
proxy->duration = frame->duration;
|
||||||
*out_proxy_ptr = proxy;
|
*out_proxy_ptr = gst_vaapi_surface_proxy_ref(proxy);
|
||||||
gst_video_codec_frame_unref(frame);
|
gst_video_codec_frame_unref(frame);
|
||||||
return GST_VAAPI_DECODER_STATUS_SUCCESS;
|
return GST_VAAPI_DECODER_STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue