libtriple: hack different notify sizes for subs and ttx into cDemux

Origin commit data
------------------
Branch: master
Commit: ebf0803f82
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2010-08-21 (Sat, 21 Aug 2010)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
Stefan Seyfried
2010-08-21 15:48:57 +02:00
parent 8dac8ae570
commit 1c4983fe6a
2 changed files with 6 additions and 2 deletions

View File

@@ -88,6 +88,7 @@ bool cDemux::Open(DMX_CHANNEL_TYPE pes_type, void * /*hVideoBuffer*/, int uBuffe
if (ioctl(fd, DEMUX_SET_BUFFER_SIZE, uBufferSize) < 0)
fprintf(stderr, "cDemux::Open DEMUX_SET_BUFFER_SIZE failed (%m)\n");
}
buffersize = uBufferSize;
return true;
}
@@ -348,13 +349,15 @@ bool cDemux::pesFilter(const unsigned short pid)
break;
case DMX_PES_CHANNEL:
flt.unloader.unloader_type = UNLOADER_TYPE_PAYLOAD;
flt.unloader.threshold = 64;
if (buffersize <= 0x10000) // dvbsubtitle, instant delivery...
flt.unloader.threshold = 1;
else
flt.unloader.threshold = 8; // 1k, teletext
flt.pesType = DMX_PES_OTHER;
flt.output = OUT_MEMORY;
default:
flt.pesType = DMX_PES_OTHER;
}
return (ioctl(fd, DEMUX_FILTER_PES_SET, &flt) >= 0);
}