summaryrefslogtreecommitdiff
path: root/src/libvdpau
diff options
context:
space:
mode:
authorJulian Scheel <julian@jusst.de>2009-01-27 16:52:55 +0000
committerJulian Scheel <julian@jusst.de>2009-01-27 16:52:55 +0000
commit1b324731e2105519a22f8e37a315d0883a997a70 (patch)
treede6420593f1febd0b9183612a6f3b3f725a77a0f /src/libvdpau
parenta3d246f8ff6bfc1748e5fdfbf24999a06b682960 (diff)
downloadxine-lib-1b324731e2105519a22f8e37a315d0883a997a70.tar.gz
xine-lib-1b324731e2105519a22f8e37a315d0883a997a70.tar.bz2
Fix pre-emption reinit in case an OSD was shown.
Diffstat (limited to 'src/libvdpau')
-rw-r--r--src/libvdpau/vdpau_h264.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libvdpau/vdpau_h264.c b/src/libvdpau/vdpau_h264.c
index ea9c3187c..16d8e3fb9 100644
--- a/src/libvdpau/vdpau_h264.c
+++ b/src/libvdpau/vdpau_h264.c
@@ -446,7 +446,8 @@ static int vdpau_decoder_render(video_decoder_t *this_gen, VdpBitstreamBuffer *v
this->decoder = VDP_INVALID_HANDLE;
vdpau_h264_reset(this_gen);
this->vdp_runtime_nr = this->vdpau_accel->vdp_runtime_nr;
- this->last_img = NULL;
+ img->free(img);
+ img = this->last_img = NULL;
return 0;
}