From d59c2ad40b7a1f82cf5d1378307d6cd8a995c0b8 Mon Sep 17 00:00:00 2001 From: Johns Date: Tue, 8 Jan 2013 23:52:41 +0100 Subject: [PATCH] Must guard CodecVideoDecode. --- softhddev.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/softhddev.c b/softhddev.c index 6a0effa..91886b9 100644 --- a/softhddev.c +++ b/softhddev.c @@ -1793,7 +1793,9 @@ int VideoDecodeInput(VideoStream * stream) //DumpMpeg(avpkt->data, avpkt->size); // lock decoder against close pthread_mutex_lock(&stream->DecoderLockMutex); - CodecVideoDecode(stream->Decoder, avpkt); + if (stream->Decoder) { + CodecVideoDecode(stream->Decoder, avpkt); + } pthread_mutex_unlock(&stream->DecoderLockMutex); //fprintf(stderr, "]\n"); #else