- libeplayer3: sync with max_10

This commit is contained in:
vanhofen
2023-01-24 21:00:47 +01:00
committed by Thilo Graf
parent 02994964e7
commit c0034ff0b7
65 changed files with 1100 additions and 959 deletions

View File

@@ -71,6 +71,8 @@ static Writer_t *AvailableWriter[] =
&WriterAudioDTS,
&WriterAudioWMA,
&WriterAudioWMAPRO,
&WriterAudioOPUS,
&WriterAudioVORBIS,
&WriterVideoH264,
&WriterVideoH265,
@@ -86,6 +88,9 @@ static Writer_t *AvailableWriter[] =
&WriterVideoFLV,
&WriterVideoWMV,
&WriterVideoMJPEG,
&WriterVideoRV40,
&WriterVideoRV30,
&WriterVideoAVS2,
NULL
};
@@ -106,16 +111,6 @@ ssize_t WriteWithRetry(Context_t *context, int pipefd, int fd, void *pDVBMtx __a
int retval = -1;
int maxFd = pipefd > fd ? pipefd : fd;
struct timeval tv;
static bool first = true;
if (first && STB_HISILICON == GetSTBType())
{
// workaround: playback of some files does not start
// if injection of the frist frame is to fast
usleep(100000);
}
first = false;
while (size > 0 && 0 == PlaybackDieNow(0) && !context->playback->isSeeking)
{
FD_ZERO(&rfds);
@@ -144,8 +139,8 @@ ssize_t WriteWithRetry(Context_t *context, int pipefd, int fd, void *pDVBMtx __a
//if (retval == 0)
//{
// //printf("RETURN FROM SELECT DUE TO TIMEOUT\n");
// continue;
// //printf("RETURN FROM SELECT DUE TO TIMEOUT\n");
// continue;
//}
if (FD_ISSET(pipefd, &rfds))