<div dir="ltr">2008/9/22 Another Sillyname <span dir="ltr">&lt;<a href="mailto:anothersname@googlemail.com" target="_blank">anothersname@googlemail.com</a>&gt;</span><br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

Hi All<br>
<br>
I&#39;m trying to hard code an Audio PID to the CNN feed on Astra 28E but<br>
am somewhat stuck so a little help is needed please.<br>
<br>
CNN on Astra 28E uses 2319 for it&#39;s VPID and usually it would use 2320<br>
for it&#39;s APID, however it is actually using 2320 for text and &nbsp;2321<br>
for it&#39;s APID.<br>
<br>
By looking at the code and a patch required for ITV HD I&#39;ve worked out<br>
that something like.....<br>
<br>
if (pmt.StreamPID(i) == 2319 &amp;&amp; type == StreamID::PrivData)<br>
 &nbsp; &nbsp; &nbsp; StreamID::IsAudio(type) == 2321;<br>
<br>
Added to /mythtv/libs/libmythtv/mpeg/mpegstreamdata.cpp near line 556<br>
(or perhaps somewhere else more appropriate) would do the job, however<br>
I don&#39;t understand the data naming structure, I can&#39;t write code for<br>
toffee and I don&#39;t want my system to burst into flames because I did<br>
it wrong!!<br>
<br>
If someone could give me some pointers I would be very grateful.</blockquote><div><br>The ITV HD patch is necessary because they intentionally misdescribe the vpid. <br>
The code should handle the situation you describe as-is. However, if the apid <br>
is misdescribed as PrivData (which seems unlikely) then you&#39;d want something like:<br>
<br>if (pmt.StreamPID(i) == 2321 &amp;&amp; type == StreamID::PrivData)<br>
&nbsp;&nbsp;&nbsp; type = StreamID::MPEG2Audio;&nbsp; <br></div></div></div>