diff options
author | Johns <johns98@gmx.net> | 2013-01-08 23:52:41 +0100 |
---|---|---|
committer | Johns <johns98@gmx.net> | 2013-01-08 23:52:41 +0100 |
commit | d59c2ad40b7a1f82cf5d1378307d6cd8a995c0b8 (patch) | |
tree | c03b1a53adb9107f2f81ca83ace6e8d000995f75 /softhddev.c | |
parent | 3366faece22b11c300ba2b40ca535815097c266c (diff) | |
download | vdr-plugin-softhddevice-d59c2ad40b7a1f82cf5d1378307d6cd8a995c0b8.tar.gz vdr-plugin-softhddevice-d59c2ad40b7a1f82cf5d1378307d6cd8a995c0b8.tar.bz2 |
Must guard CodecVideoDecode.
Diffstat (limited to 'softhddev.c')
-rw-r--r-- | softhddev.c | 4 |
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 |