diff --git a/HISTORY b/HISTORY index f727546..5fc134a 100644 --- a/HISTORY +++ b/HISTORY @@ -70,7 +70,8 @@ VDR Plugin 'iptv' Revision History - Updated Italian translation (Thanks to Diego Pierotto). - Tweaked pid scanner parameters for HD broadcasts. - Fixed opening of fifo tap. -- Updated iptvstream.sh script to support optional video resolution settings. +- Updated iptvstream.sh script to support optional video resolution + settings. - Optimized streamer thread termination. 2008-12-16: Version 0.2.3 @@ -85,7 +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.4 +2009-xx-xx: 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 + (Thanks to ua0lnj for reporting this one). diff --git a/README b/README index deef7dc..220415f 100644 --- a/README +++ b/README @@ -171,4 +171,5 @@ Acknowledgements: - The IPTV section filtering code is derived from Linux kernel. -- The pid scanning code is derived from Udo Richter's streamplayer plugin. +- The pid scanning code is derived from Udo Richter's streamplayer plugin + and defaults to MPEG2 video stream type. diff --git a/pidscanner.c b/pidscanner.c index 815b315..6c03c9c 100644 --- a/pidscanner.c +++ b/pidscanner.c @@ -147,7 +147,8 @@ void cPidScanner::Process(const uint8_t* buf) Spids[i] = IptvChannel->Spid(i); debug("cPidScanner::Process(): Vpid=0x%04X, Apid=0x%04X\n", Vpid, Apid); #if defined(APIVERSNUM) && APIVERSNUM >= 10700 - IptvChannel->SetPids(Vpid, Ppid, 0, Apids, ALangs, Dpids, DLangs, Spids, SLangs, Tpid); + int Vtype = 0x02; // MPEG-2=0x02, H.264=0x1B + IptvChannel->SetPids(Vpid, Ppid, Vtype, Apids, ALangs, Dpids, DLangs, Spids, SLangs, Tpid); #else IptvChannel->SetPids(Vpid, Ppid, Apids, ALangs, Dpids, DLangs, Spids, SLangs, Tpid); #endif