release mutex when waiting for new frame

Origin commit data
------------------
Branch: master
Commit: 82229e96ec
Author: skyjet18 <57456827+skyjet18@users.noreply.github.com>
Date: 2023-01-24 (Tue, 24 Jan 2023)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
skyjet18
2023-01-24 20:57:12 +01:00
committed by vanhofen
parent 01dc8379a1
commit d61deb5e9b

View File

@@ -780,7 +780,19 @@ static void FFMPEGThread(Context_t *context)
} }
} }
if (!isWaitingForFinish && (ffmpegStatus = av_read_frame(avContextTab[cAVIdx], &packet)) == 0) if (bufferSize > 0)
{
LinuxDvbBuffSetStamp(stamp);
}
if (!isWaitingForFinish)
{
releaseMutex(__FILE__, __FUNCTION__, __LINE__);
ffmpegStatus = av_read_frame(avContextTab[cAVIdx], &packet);
getMutex(__FILE__, __FUNCTION__, __LINE__);
}
if (!isWaitingForFinish && (ffmpegStatus == 0))
{ {
int64_t pts = 0; int64_t pts = 0;
int64_t dts = 0; int64_t dts = 0;