From 1a730ef90b7fa999b5ea8f671560e2b4d56c777d Mon Sep 17 00:00:00 2001 From: Johns Date: Wed, 9 Jan 2013 00:39:27 +0100 Subject: [PATCH] Fix build without USE_PIP. --- softhddev.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/softhddev.c b/softhddev.c index 91886b9..3f32538 100644 --- a/softhddev.c +++ b/softhddev.c @@ -2937,7 +2937,9 @@ void SoftHdDeviceExit(void) } pthread_mutex_destroy(&SuspendLockMutex); +#ifdef USE_PIP pthread_mutex_destroy(&PipVideoStream->DecoderLockMutex); +#endif pthread_mutex_destroy(&MyVideoStream->DecoderLockMutex); } @@ -2956,7 +2958,9 @@ int Start(void) CodecInit(); pthread_mutex_init(&MyVideoStream->DecoderLockMutex, NULL); +#ifdef USE_PIP pthread_mutex_init(&PipVideoStream->DecoderLockMutex, NULL); +#endif pthread_mutex_init(&SuspendLockMutex, NULL); if (!ConfigStartSuspended) {