summaryrefslogtreecommitdiffstats
path: root/sys/vdpau/gstvdpaumpegdecoder.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/vdpau/gstvdpaumpegdecoder.c')
-rw-r--r--sys/vdpau/gstvdpaumpegdecoder.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/vdpau/gstvdpaumpegdecoder.c b/sys/vdpau/gstvdpaumpegdecoder.c
index 1910652c..67af4e3f 100644
--- a/sys/vdpau/gstvdpaumpegdecoder.c
+++ b/sys/vdpau/gstvdpaumpegdecoder.c
@@ -169,8 +169,10 @@ gst_vdpau_mpeg_decoder_decode (GstVdpauMpegDecoder * mpeg_dec)
("Error returned from vdpau was: %s",
device->vdp_get_error_string (status)));
- if (mpeg_dec->vdp_info.forward_reference != VDP_INVALID_HANDLE)
+ if (mpeg_dec->vdp_info.forward_reference != VDP_INVALID_HANDLE) {
gst_buffer_unref (mpeg_dec->f_buffer);
+ mpeg_dec->vdp_info.forward_reference = VDP_INVALID_HANDLE;
+ }
gst_buffer_unref (GST_BUFFER (outbuf));