vdpau: small fix

set vdp_info.forward_reference to VDP_INVALID handle when unreffing the old
buffer
This commit is contained in:
Carl-Anton Ingmarsson 2009-04-07 21:51:48 +02:00 committed by Jan Schmidt
parent f8e0c0bcc1
commit 072f869548

View file

@ -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));