mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-libstb-hal.git
synced 2025-08-26 15:02:43 +02:00
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:
@@ -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 dts = 0;
|
||||
|
Reference in New Issue
Block a user