mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-30 17:01:08 +02:00
sectionsd: close / reopen demux device explicitely on TD
The Tripledragon drivers need explicit close/open to recover from
buffer overruns (or similar). Observed problem was, that when starting
on a channel that does send TDT only every 30 seconds (ZDF), the demux
would not work anymore and never recover.
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@1258 e54a6e83-5905-42d5-8d5c-058d10e6a962
Origin commit data
------------------
Branch: ni/coolstream
Commit: 1f84bf9a1b
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2011-03-06 (Sun, 06 Mar 2011)
------------------
This commit was generated by Migit
This commit is contained in:
@@ -105,7 +105,11 @@ void DMX::closefd(void)
|
||||
if (isOpen())
|
||||
{
|
||||
//close(fd);
|
||||
#if HAVE_TRIPLEDRAGON
|
||||
dmx->Close();
|
||||
#else
|
||||
dmx->Stop();
|
||||
#endif
|
||||
fd = -1;
|
||||
}
|
||||
}
|
||||
@@ -495,8 +499,13 @@ xprintf(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>DMX::imediate_start: isOpen()<<<<<<<<<<<<
|
||||
#endif
|
||||
if(dmx == NULL) {
|
||||
dmx = new cDemux(dmx_num);
|
||||
#if !HAVE_TRIPLEDRAGON
|
||||
dmx->Open(DMX_PSI_CHANNEL, NULL, dmxBufferSizeInKB*1024UL);
|
||||
#endif
|
||||
}
|
||||
#if HAVE_TRIPLEDRAGON
|
||||
dmx->Open(DMX_PSI_CHANNEL, NULL, dmxBufferSizeInKB*1024UL);
|
||||
#endif
|
||||
fd = 1;
|
||||
|
||||
/* setfilter() only if this is no dummy filter... */
|
||||
|
Reference in New Issue
Block a user