spark,azbox: make demux FD nonblocking

...except for DMX_PSI_CHANNEL, which does not seem to expect that.
This commit is contained in:
Stefan Seyfried
2012-07-15 11:44:16 +02:00
parent caeb3f4230
commit 5583233e9e
2 changed files with 7 additions and 0 deletions

View File

@@ -94,6 +94,9 @@ bool cDemux::Open(DMX_CHANNEL_TYPE pes_type, void * /*hVideoBuffer*/, int uBuffe
int flags = O_RDWR;
if (fd > -1)
lt_info("%s FD ALREADY OPENED? fd = %d\n", __FUNCTION__, fd);
if (pes_type != DMX_PSI_CHANNEL)
flags |= O_NONBLOCK;
#if 0
if (pes_type == DMX_TP_CHANNEL)
{