mirror of
https://projects.vdr-developer.org/git/vdr-plugin-softhddevice.git
synced 2023-10-10 19:16:51 +02:00
Must guard CodecVideoDecode.
This commit is contained in:
parent
3366faece2
commit
d59c2ad40b
@ -1793,7 +1793,9 @@ int VideoDecodeInput(VideoStream * stream)
|
|||||||
//DumpMpeg(avpkt->data, avpkt->size);
|
//DumpMpeg(avpkt->data, avpkt->size);
|
||||||
// lock decoder against close
|
// lock decoder against close
|
||||||
pthread_mutex_lock(&stream->DecoderLockMutex);
|
pthread_mutex_lock(&stream->DecoderLockMutex);
|
||||||
|
if (stream->Decoder) {
|
||||||
CodecVideoDecode(stream->Decoder, avpkt);
|
CodecVideoDecode(stream->Decoder, avpkt);
|
||||||
|
}
|
||||||
pthread_mutex_unlock(&stream->DecoderLockMutex);
|
pthread_mutex_unlock(&stream->DecoderLockMutex);
|
||||||
//fprintf(stderr, "]\n");
|
//fprintf(stderr, "]\n");
|
||||||
#else
|
#else
|
||||||
|
Loading…
Reference in New Issue
Block a user