mirror of
https://github.com/tuxbox-neutrino/libstb-hal.git
synced 2025-08-31 09:21:20 +02:00
- libeplayer3: sync with max_10
This commit is contained in:
@@ -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))
|
||||
|
Reference in New Issue
Block a user