spark,azbox: make demux FD nonblocking

...except for DMX_PSI_CHANNEL, which does not seem to expect that.


Origin commit data
------------------
Branch: master
Commit: 5583233e9e
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2012-07-15 (Sun, 15 Jul 2012)



------------------
This commit was generated by Migit
This commit is contained in:
Stefan Seyfried
2012-07-15 11:44:16 +02:00
parent 3968793593
commit 6a5ad2af23
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)
{