mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-30 17:01:15 +02:00
eitd/dmx.cpp: delete demux instead of stop in closefd,
add helper to set demux number
This commit is contained in:
@@ -117,11 +117,13 @@ void DMX::close(void)
|
||||
void DMX::closefd(void)
|
||||
{
|
||||
#ifdef DEBUG_DEMUX
|
||||
xprintf(" %s: DMX::closefd, isOpen %d\n", name.c_str(), isOpen());
|
||||
xcprintf(" %s: DMX::closefd, isOpen %d demux #%d", name.c_str(), isOpen(), dmx_num);
|
||||
#endif
|
||||
if (isOpen())
|
||||
{
|
||||
dmx->Stop();
|
||||
//dmx->Stop();
|
||||
delete dmx;
|
||||
dmx = NULL;
|
||||
fd = -1;
|
||||
}
|
||||
}
|
||||
@@ -484,6 +486,9 @@ int DMX::immediate_start(void)
|
||||
}
|
||||
|
||||
if(dmx == NULL) {
|
||||
#ifdef DEBUG_DEMUX
|
||||
xcprintf(" %s: open demux #%d", name.c_str(), dmx_num);
|
||||
#endif
|
||||
dmx = new cDemux(dmx_num);
|
||||
dmx->Open(DMX_PSI_CHANNEL, NULL, dmxBufferSizeInKB*1024UL);
|
||||
}
|
||||
|
Reference in New Issue
Block a user