summaryrefslogtreecommitdiffstats
path: root/sys/vdpau/gstvdpmpegdecoder.c
diff options
context:
space:
mode:
authorCarl-Anton Ingmarsson <ca.ingmarsson@gmail.com>2009-05-05 23:19:56 +0200
committerJan Schmidt <thaytan@noraisin.net>2009-06-20 15:21:39 +0100
commit8e66a1783092da8c171b1d10273eda91e590e732 (patch)
treeb75f9aa9e4c0dd8a2c934ea5cf6f526e63dd6885 /sys/vdpau/gstvdpmpegdecoder.c
parent0ffaf06a9ab7dd780a85f0072e3d3571a5e8639e (diff)
downloadgst-plugins-bad-8e66a1783092da8c171b1d10273eda91e590e732.tar.gz
gst-plugins-bad-8e66a1783092da8c171b1d10273eda91e590e732.tar.bz2
gst-plugins-bad-8e66a1783092da8c171b1d10273eda91e590e732.zip
vdpau: add debug on GstVdpDevice destroy
Diffstat (limited to 'sys/vdpau/gstvdpmpegdecoder.c')
-rw-r--r--sys/vdpau/gstvdpmpegdecoder.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/vdpau/gstvdpmpegdecoder.c b/sys/vdpau/gstvdpmpegdecoder.c
index fe9b3e7c..006e6d41 100644
--- a/sys/vdpau/gstvdpmpegdecoder.c
+++ b/sys/vdpau/gstvdpmpegdecoder.c
@@ -178,10 +178,12 @@ 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 (info->forward_reference != VDP_INVALID_HANDLE &&
info->picture_coding_type != I_FRAME)
gst_vdp_video_buffer_add_reference (outbuf,
GST_VDP_VIDEO_BUFFER (mpeg_dec->f_buffer));
+
if (info->backward_reference != VDP_INVALID_HANDLE)
gst_vdp_video_buffer_add_reference (outbuf,
GST_VDP_VIDEO_BUFFER (mpeg_dec->b_buffer));