summaryrefslogtreecommitdiff
path: root/softhddev.c
diff options
context:
space:
mode:
Diffstat (limited to 'softhddev.c')
-rw-r--r--softhddev.c4
1 files changed, 3 insertions, 1 deletions
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