1
0
mirror of https://github.com/rofafor/vdr-plugin-iptv.git synced 2023-10-10 13:37:03 +02:00

Fixed pid scanner to set the existing video stream type.

This commit is contained in:
Rolf Ahrenberg 2009-03-06 22:20:34 +02:00
parent 94225ac6a4
commit d546cac834
9 changed files with 35 additions and 20 deletions

View File

@ -86,10 +86,10 @@ VDR Plugin 'iptv' Revision History
- Set max IPTV device count to VDR's max devices.
- Fixed a possible crash in sid and pid scanners.
2009-xx-xx: Version 0.2.5
2009-03-08: Version 0.2.5
- Optimized TS packet data flow.
- Refactored section filter class.
- Cleaned up example scripts.
- Fixed pid scanner to default MPEG2 video stream type
- Fixed pid scanner to set the existing video stream type
(Thanks to ua0lnj for reporting this one).

3
README
View File

@ -171,5 +171,4 @@ Acknowledgements:
- The IPTV section filtering code is derived from Linux kernel.
- The pid scanning code is derived from Udo Richter's streamplayer plugin
and defaults to MPEG2 video stream type.
- The pid scanning code is derived from Udo Richter's streamplayer plugin.

View File

@ -146,8 +146,8 @@ void cPidScanner::Process(const uint8_t* buf)
for (unsigned int i = 0; i < MAXSPIDS; ++i)
Spids[i] = IptvChannel->Spid(i);
debug("cPidScanner::Process(): Vpid=0x%04X, Apid=0x%04X\n", Vpid, Apid);
#if defined(APIVERSNUM) && APIVERSNUM >= 10700
int Vtype = 0x02; // MPEG-2=0x02, H.264=0x1B
#if defined(APIVERSNUM) && APIVERSNUM >= 10704
int Vtype = IptvChannel->Vtype();
IptvChannel->SetPids(Vpid, Ppid, Vtype, Apids, ALangs, Dpids, DLangs, Spids, SLangs, Tpid);
#else
IptvChannel->SetPids(Vpid, Ppid, Apids, ALangs, Dpids, DLangs, Spids, SLangs, Tpid);

View File

@ -5,9 +5,9 @@
#
msgid ""
msgstr ""
"Project-Id-Version: iptv 0.2.0\n"
"Project-Id-Version: iptv 0.2.5\n"
"Report-Msgid-Bugs-To: Rolf Ahrenberg\n"
"POT-Creation-Date: 2008-02-01 23:43+0200\n"
"POT-Creation-Date: 2009-03-06 22:15+0200\n"
"PO-Revision-Date: 2007-10-29 21:19+0100\n"
"Last-Translator: Tobias Grimm <tg@e-tobi.net>\n"
"Language-Team: German\n"
@ -76,6 +76,9 @@ msgstr "Scanne SID"
msgid "Scan pids"
msgstr "Scanne PIDS"
msgid "Vtype"
msgstr "Vtype"
msgid "Nid"
msgstr "Nid"

View File

@ -5,9 +5,9 @@
#
msgid ""
msgstr ""
"Project-Id-Version: iptv 0.2.0\n"
"Project-Id-Version: iptv 0.2.5\n"
"Report-Msgid-Bugs-To: Rolf Ahrenberg\n"
"POT-Creation-Date: 2008-02-01 23:43+0200\n"
"POT-Creation-Date: 2009-03-06 22:15+0200\n"
"PO-Revision-Date: 2007-08-12 23:22+0300\n"
"Last-Translator: Rolf Ahrenberg\n"
"Language-Team: <vdr@linuxtv.org>\n"
@ -75,6 +75,9 @@ msgstr "Etsi palvelu-ID"
msgid "Scan pids"
msgstr "Etsi pidit"
msgid "Vtype"
msgstr "Kuvatyyppi"
msgid "Nid"
msgstr "Verkko-ID"

View File

@ -6,9 +6,9 @@
#
msgid ""
msgstr ""
"Project-Id-Version: iptv 0.2.0\n"
"Project-Id-Version: iptv 0.2.5\n"
"Report-Msgid-Bugs-To: Rolf Ahrenberg\n"
"POT-Creation-Date: 2008-02-01 23:43+0200\n"
"POT-Creation-Date: 2009-03-06 22:15+0200\n"
"PO-Revision-Date: 2008-01-26 13:14+0100\n"
"Last-Translator: NIVAL Michaël <mnival@club-internet.fr>\n"
"Language-Team: French\n"
@ -77,6 +77,9 @@ msgstr "Scanne les SID"
msgid "Scan pids"
msgstr "Scanne les PID"
msgid "Vtype"
msgstr "Vtype"
msgid "Nid"
msgstr "Nid"

View File

@ -5,9 +5,9 @@
#
msgid ""
msgstr ""
"Project-Id-Version: iptv 0.2.0\n"
"Project-Id-Version: iptv 0.2.5\n"
"Report-Msgid-Bugs-To: Rolf Ahrenberg\n"
"POT-Creation-Date: 2008-02-01 23:43+0200\n"
"POT-Creation-Date: 2009-03-06 22:15+0200\n"
"PO-Revision-Date: 2008-07-13 03:28+0100\n"
"Last-Translator: Diego Pierotto <vdr-italian@tiscali.it>\n"
"Language-Team: Italian\n"
@ -76,6 +76,9 @@ msgstr "Scansione Sid"
msgid "Scan pids"
msgstr "Scansione Pids"
msgid "Vtype"
msgstr "Vtype"
msgid "Nid"
msgstr "Nid"
@ -180,4 +183,3 @@ msgstr "Definisci un filtro corrotto che sarà messo nella lista nera."
msgid "Help"
msgstr "Aiuto"

View File

@ -5,9 +5,9 @@
#
msgid ""
msgstr ""
"Project-Id-Version: iptv 0.2.0\n"
"Project-Id-Version: iptv 0.2.5\n"
"Report-Msgid-Bugs-To: Rolf Ahrenberg\n"
"POT-Creation-Date: 2008-02-01 23:43+0200\n"
"POT-Creation-Date: 2009-03-06 22:15+0200\n"
"PO-Revision-Date: 2008-03-16 12:14+0100\n"
"Last-Translator: Alexander Gross <Bikalexander@gmail.com>\n"
"Language-Team: Russian <de@li.org>\n"
@ -77,6 +77,9 @@ msgstr "Сканировать SID"
msgid "Scan pids"
msgstr "Сканировать пиды"
msgid "Vtype"
msgstr "Vtype"
msgid "Nid"
msgstr "Nid"
@ -165,4 +168,3 @@ msgstr "Неправильно работающий фильтр, занести
msgid "Help"
msgstr "Справка"

View File

@ -127,7 +127,7 @@ void cIptvMenuEditChannel::GetChannelData(cChannel *Channel)
data.source = Channel->Source();
data.vpid = Channel->Vpid();
data.ppid = Channel->Ppid();
#if defined(APIVERSNUM) && APIVERSNUM >= 10700
#if defined(APIVERSNUM) && APIVERSNUM >= 10704
data.vtype = Channel->Vtype();
#endif
data.tpid = Channel->Tpid();
@ -200,7 +200,7 @@ void cIptvMenuEditChannel::SetChannelData(cChannel *Channel)
break;
}
char slangs[MAXSPIDS][MAXLANGCODE2] = { "" };
#if defined(APIVERSNUM) && APIVERSNUM >= 10700
#if defined(APIVERSNUM) && APIVERSNUM >= 10704
Channel->SetPids(data.vpid, data.ppid, data.vtype, data.apid, alangs, data.dpid, dlangs, data.spid, slangs, data.tpid);
#else
Channel->SetPids(data.vpid, data.ppid, data.apid, alangs, data.dpid, dlangs, data.spid, slangs, data.tpid);
@ -244,6 +244,9 @@ void cIptvMenuEditChannel::Setup(void)
Add(new cMenuEditStrItem(trVDR("Name"), data.name, sizeof(data.name)));
Add(new cMenuEditIntItem(trVDR("Frequency"), &data.frequency));
Add(new cMenuEditIntItem(trVDR("Vpid"), &data.vpid, 0, 0x1FFF));
#if defined(APIVERSNUM) && APIVERSNUM >= 10704
Add(new cMenuEditIntItem(tr ("Vtype"), &data.vtype, 0, 0xFF));
#endif
Add(new cMenuEditIntItem(trVDR("Ppid"), &data.ppid, 0, 0x1FFF));
Add(new cMenuEditIntItem(trVDR("Apid1"), &data.apid[0], 0, 0x1FFF));
Add(new cMenuEditIntItem(trVDR("Apid2"), &data.apid[1], 0, 0x1FFF));