From e416f5f5e095300d41d7bd22cdc517df29924bf4 Mon Sep 17 00:00:00 2001 From: Carl-Anton Ingmarsson Date: Tue, 5 May 2009 18:37:50 +0200 Subject: [PATCH] vdpaumpegdec: set correct timestamps --- sys/vdpau/gstvdpmpegdecoder.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sys/vdpau/gstvdpmpegdecoder.c b/sys/vdpau/gstvdpmpegdecoder.c index eda32c60e2..838b4e5af7 100644 --- a/sys/vdpau/gstvdpmpegdecoder.c +++ b/sys/vdpau/gstvdpmpegdecoder.c @@ -163,7 +163,6 @@ gst_vdp_mpeg_decoder_decode (GstVdpMpegDecoder * mpeg_dec, if (mpeg_dec->vdp_info.picture_coding_type != B_FRAME) { if (mpeg_dec->vdp_info.backward_reference != VDP_INVALID_HANDLE) { - GST_BUFFER_TIMESTAMP (mpeg_dec->b_buffer) = timestamp; gst_buffer_ref (mpeg_dec->b_buffer); gst_vdp_decoder_push_video_buffer (dec, GST_VDP_VIDEO_BUFFER (mpeg_dec->b_buffer)); @@ -183,6 +182,7 @@ gst_vdp_mpeg_decoder_decode (GstVdpMpegDecoder * mpeg_dec, outbuf = gst_vdp_video_buffer_new (dec->device, VDP_CHROMA_TYPE_420, dec->width, dec->height); + GST_BUFFER_TIMESTAMP (outbuf) = timestamp; if (mpeg_dec->vdp_info.forward_reference != VDP_INVALID_HANDLE) gst_vdp_video_buffer_add_reference (outbuf, GST_VDP_VIDEO_BUFFER (mpeg_dec->f_buffer)); @@ -215,7 +215,6 @@ gst_vdp_mpeg_decoder_decode (GstVdpMpegDecoder * mpeg_dec, } if (mpeg_dec->vdp_info.picture_coding_type == B_FRAME) { - GST_BUFFER_TIMESTAMP (outbuf) = timestamp; gst_vdp_decoder_push_video_buffer (dec, GST_VDP_VIDEO_BUFFER (outbuf)); } else { mpeg_dec->vdp_info.backward_reference = surface;