mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-10 03:19:40 +00:00
decoder: export presentation timestamp for raw decoding mode.
Fix regression from 0.4-branch whereby GstVaapiSurfaceProxy no longer held any information about the expected presentation timestamp, frame duration or additional flags like interlaced or top-field-first.
This commit is contained in:
parent
87e5717f66
commit
2ac474b207
1 changed files with 4 additions and 1 deletions
|
@ -701,7 +701,10 @@ gst_vaapi_decoder_get_surface(GstVaapiDecoder *decoder,
|
|||
frame = pop_frame(decoder);
|
||||
while (frame) {
|
||||
if (!GST_VIDEO_CODEC_FRAME_IS_DECODE_ONLY(frame)) {
|
||||
*out_proxy_ptr = gst_vaapi_surface_proxy_ref(frame->user_data);
|
||||
GstVaapiSurfaceProxy * const proxy = frame->user_data;
|
||||
proxy->timestamp = frame->pts;
|
||||
proxy->duration = frame->duration;
|
||||
*out_proxy_ptr = proxy;
|
||||
gst_video_codec_frame_unref(frame);
|
||||
return GST_VAAPI_DECODER_STATUS_SUCCESS;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue