diff options
author | Johns <johns98@gmx.net> | 2015-03-10 10:31:49 +0100 |
---|---|---|
committer | Johns <johns98@gmx.net> | 2015-03-10 10:31:49 +0100 |
commit | 2866e328c6f6117af51903c3ed4cb1bb108b88ce (patch) | |
tree | 55683903a41bcb988bd24109c83845b2b66163cc /video.c | |
parent | 915dff8714f10732b2e23cf43f0fc2860ac5cb1d (diff) | |
download | vdr-plugin-softhddevice-2866e328c6f6117af51903c3ed4cb1bb108b88ce.tar.gz vdr-plugin-softhddevice-2866e328c6f6117af51903c3ed4cb1bb108b88ce.tar.bz2 |
Fix bug: destroyed vdpau surfaces still used in queue.
Diffstat (limited to 'video.c')
-rw-r--r-- | video.c | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -6648,6 +6648,14 @@ static void VdpauExitOutputQueue(void) int i; VdpStatus status; + if (VdpauQueue) { + VdpauPresentationQueueDestroy(VdpauQueue); + VdpauQueue = 0; + } + if (VdpauQueueTarget) { + VdpauPresentationQueueTargetDestroy(VdpauQueueTarget); + VdpauQueueTarget = 0; + } // // destroy display output surfaces // @@ -6672,14 +6680,6 @@ static void VdpauExitOutputQueue(void) } VdpauGrabRenderSurface = VDP_INVALID_HANDLE; } - if (VdpauQueue) { - VdpauPresentationQueueDestroy(VdpauQueue); - VdpauQueue = 0; - } - if (VdpauQueueTarget) { - VdpauPresentationQueueTargetDestroy(VdpauQueueTarget); - VdpauQueueTarget = 0; - } } /// |