diff options
author | Carl-Anton Ingmarsson <ca.ingmarsson@gmail.com> | 2009-04-07 21:51:48 +0200 |
---|---|---|
committer | Jan Schmidt <thaytan@noraisin.net> | 2009-06-20 15:21:26 +0100 |
commit | 072f8695485173d660363c1d8be3e62dacc69175 (patch) | |
tree | ad3f24f6219a8d51794348a7578871530479736a /sys/vdpau | |
parent | f8e0c0bcc11735e14636c7ea45fd23253e6cef99 (diff) | |
download | gst-plugins-bad-072f8695485173d660363c1d8be3e62dacc69175.tar.gz gst-plugins-bad-072f8695485173d660363c1d8be3e62dacc69175.tar.bz2 gst-plugins-bad-072f8695485173d660363c1d8be3e62dacc69175.zip |
vdpau: small fix
set vdp_info.forward_reference to VDP_INVALID handle when unreffing the old
buffer
Diffstat (limited to 'sys/vdpau')
-rw-r--r-- | sys/vdpau/gstvdpaumpegdecoder.c | 4 |
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)); |