mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-28 16:01:10 +02:00
streamts: add dvbsub and teletext pid to stream
Origin commit data
------------------
Commit: ada1ec3e60
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2013-08-08 (Thu, 08 Aug 2013)
This commit is contained in:
@@ -394,6 +394,27 @@ bool CStreamManager::Parse(int fd, stream_pids_t &pids, t_channel_id &chid)
|
||||
pids.insert(channel->getPcrPid());
|
||||
psi.addPid(channel->getPcrPid(), EN_TYPE_PCR, 0);
|
||||
}
|
||||
//add teletext pid
|
||||
if (g_settings.recording_stream_vtxt_pid && channel->getTeletextPid() != 0){
|
||||
pids.insert(channel->getTeletextPid());
|
||||
psi.addPid(channel->getTeletextPid(), EN_TYPE_TELTEX, 0, channel->getTeletextLang());
|
||||
}
|
||||
//add dvb sub pid
|
||||
if (g_settings.recording_stream_subtitle_pids){
|
||||
for (int i = 0 ; i < (int)channel->getSubtitleCount() ; ++i) {
|
||||
CZapitAbsSub* s = channel->getChannelSub(i);
|
||||
if (s->thisSubType == CZapitAbsSub::DVB) {
|
||||
if(i>9)//max sub pids
|
||||
break;
|
||||
|
||||
CZapitDVBSub* sd = reinterpret_cast<CZapitDVBSub*>(s);
|
||||
pids.insert(sd->pId);
|
||||
psi.addPid( sd->pId, EN_TYPE_DVBSUB, 0, sd->ISO639_language_code.c_str() );
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
psi.genpsi(fd);
|
||||
|
||||
return !pids.empty();
|
||||
|
Reference in New Issue
Block a user