decoder: always use the calculated presentation timestamp.

Use PTS value computed by the decoder, which could also be derived from
the GstVideoCodecFrame PTS. This makes it possible to fix up the PTS if
the original one was miscomputed or only represented a DTS instead.
This commit is contained in:
Gwenole Beauchesne 2013-01-03 13:05:47 +01:00
parent 3f60f136cc
commit 492cafdbc1

View file

@ -319,7 +319,6 @@ gst_vaapi_picture_output(GstVaapiPicture *picture)
gst_video_codec_frame_set_user_data(out_frame,
proxy, (GDestroyNotify)gst_vaapi_mini_object_unref);
if (!GST_CLOCK_TIME_IS_VALID(out_frame->pts))
out_frame->pts = picture->pts;
if (GST_VAAPI_PICTURE_IS_SKIPPED(picture))
GST_VIDEO_CODEC_FRAME_FLAG_SET(out_frame,