mirror of
https://github.com/tuxbox-neutrino/libstb-hal.git
synced 2025-08-26 15:02:58 +02:00
libtriple: hack different notify sizes for subs and ttx into cDemux
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
@@ -28,6 +28,7 @@ class cDemux
|
||||
private:
|
||||
int num;
|
||||
int fd;
|
||||
int buffersize;
|
||||
DMX_CHANNEL_TYPE dmx_type;
|
||||
std::vector<int> pesfds;
|
||||
public:
|
||||
|
Reference in New Issue
Block a user