diff options
author | Carl-Anton Ingmarsson <ca.ingmarsson@gmail.com> | 2009-05-05 18:37:50 +0200 |
---|---|---|
committer | Jan Schmidt <thaytan@noraisin.net> | 2009-06-20 15:21:38 +0100 |
commit | e416f5f5e095300d41d7bd22cdc517df29924bf4 (patch) | |
tree | 43066781521fc298a6817267c68d0d8562725490 /sys | |
parent | fda9c56a590659323c0e503933dea946a42bf8f6 (diff) | |
download | gst-plugins-bad-e416f5f5e095300d41d7bd22cdc517df29924bf4.tar.gz gst-plugins-bad-e416f5f5e095300d41d7bd22cdc517df29924bf4.tar.bz2 gst-plugins-bad-e416f5f5e095300d41d7bd22cdc517df29924bf4.zip |
vdpaumpegdec: set correct timestamps
Diffstat (limited to 'sys')
-rw-r--r-- | sys/vdpau/gstvdpmpegdecoder.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/vdpau/gstvdpmpegdecoder.c b/sys/vdpau/gstvdpmpegdecoder.c index eda32c60..838b4e5a 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; |