mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 18:05:37 +00:00
vdpau: small fix
set vdp_info.forward_reference to VDP_INVALID handle when unreffing the old buffer
This commit is contained in:
parent
f8e0c0bcc1
commit
072f869548
1 changed files with 3 additions and 1 deletions
|
@ -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));
|
||||
|
||||
|
|
Loading…
Reference in a new issue