home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
Development
General Development (no feature request here!)
MERGING MediaPortal Url Source Splitter & IPTV Filter
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="mm1352000" data-source="post: 1139870" data-attributes="member: 82144"><p>[USER=107951]@georgius[/USER] </p><p>I found a problem in the current IPTV filter. A certain section of code is causing PMT sections to be thrown away:</p><p><a href="https://github.com/MediaPortal/MediaPortal-1/blob/master/DirectShowFilters/MPIPTVSource/MPIPTVSource/MPIPTVSourceStream.cpp#L521" target="_blank">https://github.com/MediaPortal/MediaPortal-1/blob/master/DirectShowFilters/MPIPTVSource/MPIPTVSource/MPIPTVSourceStream.cpp#L521</a></p><p></p><p>The problem happens when:</p><ul> <li data-xf-list-type="ul">TS contains more than one program</li> <li data-xf-list-type="ul">PMT for more than one program is carried on the same PID</li> <li data-xf-list-type="ul">a TS packet contains more than one PMT section</li> </ul><p>The code accepts and parses the first section in the packet. That is okay. However, it throws away the remaining data in the packet, which could contain additional PMT sections (or at least the start of the next PMT section).</p><p></p><p>Also, it seems like this code:</p><p><a href="https://github.com/MediaPortal/MediaPortal-1/blob/master/DirectShowFilters/MPIPTVSource/MPIPTVSource/MPIPTVSourceStream.cpp#L493" target="_blank">https://github.com/MediaPortal/MediaPortal-1/blob/master/DirectShowFilters/MPIPTVSource/MPIPTVSource/MPIPTVSourceStream.cpp#L493</a></p><p></p><p>...only does what it is intended to do when the PMT section is aligned with the start of the TS packet. This will not always be the case, even when the TS only contains one program. For example, if the PMT section is larger than 183 bytes (ie. requires more than one packet). In this case, "if (pmtParser->IsValidPacket())" will fail.</p></blockquote><p></p>
[QUOTE="mm1352000, post: 1139870, member: 82144"] [USER=107951]@georgius[/USER] I found a problem in the current IPTV filter. A certain section of code is causing PMT sections to be thrown away: [URL]https://github.com/MediaPortal/MediaPortal-1/blob/master/DirectShowFilters/MPIPTVSource/MPIPTVSource/MPIPTVSourceStream.cpp#L521[/URL] The problem happens when: [LIST] [*]TS contains more than one program [*]PMT for more than one program is carried on the same PID [*]a TS packet contains more than one PMT section [/LIST] The code accepts and parses the first section in the packet. That is okay. However, it throws away the remaining data in the packet, which could contain additional PMT sections (or at least the start of the next PMT section). Also, it seems like this code: [URL]https://github.com/MediaPortal/MediaPortal-1/blob/master/DirectShowFilters/MPIPTVSource/MPIPTVSource/MPIPTVSourceStream.cpp#L493[/URL] ...only does what it is intended to do when the PMT section is aligned with the start of the TS packet. This will not always be the case, even when the TS only contains one program. For example, if the PMT section is larger than 183 bytes (ie. requires more than one packet). In this case, "if (pmtParser->IsValidPacket())" will fail. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Development
General Development (no feature request here!)
MERGING MediaPortal Url Source Splitter & IPTV Filter
Contact us
RSS
Top
Bottom