Fix bug: destroyed vdpau surfaces still used in queue.

This commit is contained in:
Johns 2015-03-10 10:31:49 +01:00
parent 915dff8714
commit 2866e328c6
2 changed files with 9 additions and 8 deletions

View File

@ -1,6 +1,7 @@
User johns
Date:
Fix bug: destroyed vdpau surfaces still used in queue.
Fix bug: need signed char, if compiler has unsigned chars.
Try smaller audio puffer, if default size fails.
Fix bug: center cut-out didn't use cut off pixels.

16
video.c
View File

@ -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;
}
}
///