[mythtv-users] More ATSC woes - Doug README - somestationsnow notbeingreceived at all

john roberts homepagez at lycos.com
Wed Jan 5 08:40:04 EST 2005


You bet I can test it. ;)

Will let you know later today.

Thanks a ton,

-John

----- Original Message -----
From: "Doug Larrick" <doug at ties.org>
To: "Discussion about mythtv" <mythtv-users at mythtv.org>
Subject: Re: [mythtv-users] More ATSC woes - Doug README - somestationsnownotbeingreceived at all
Date: Wed, 05 Jan 2005 07:27:09 -0500

> 
> john roberts wrote:
> > Odd.  Ok - I'll post the backend in verbose mode.
> >
> > I'm confused on the sub-chan definitions you're suggesting here.  I
> > was under the impression that a station such as:
> >
> >
> >>> FOX45_H:      :45.1 :46: 3:0 FOX45  :      :45.2 :46: 4:0
> >
> >
> > Would be mapped as
> >
> > 45_1 -> 46-3 45_2 -> 46-4
> >
> > Am I incorrect in this thinking?
> 
> Yes, you are incorrect.  You're describing the way things used to be. The new 
> code performs this mapping for you.  Mythfilldatabase should be setting it up 
> correctly for you.  If not, Zap2it is giving you bad data.
> 
> The problem is that we're barfing parsing the TVCT (terrestrial virtual 
> channel table) for some of your stations.  Investigation has shown that they 
> are NULL-padding the station name, where they should be space-padding it.  
> The attached patch should fix it -- could you test it and let me know?
> 
> -Doug

>
> 
> Index: libs/libmythtv/mpeg/atsctables.h
> ===================================================================
> RCS file: /var/lib/mythcvs/mythtv/libs/libmythtv/mpeg/atsctables.h,v
> retrieving revision 1.1
> diff -u -r1.1 atsctables.h
> --- libs/libmythtv/mpeg/atsctables.h	8 Dec 2004 02:04:08 -0000	1.1
> +++ libs/libmythtv/mpeg/atsctables.h	5 Jan 2005 12:24:46 -0000
> @@ -154,7 +154,10 @@
>           QString str;
>           const unsigned short* ustr =
>               reinterpret_cast<const unsigned short*>(_ptrs[i]);
> -        for (int j=0; j<7; j++) str.append(QChar((ustr[j]<<8) | 
> (ustr[j]>>8)));
> +        for (int j=0; j<7; j++) {
> +            QChar c((ustr[j]<<8) | (ustr[j]>>8));
> +            if (c != QChar('\0')) str.append(c);
> +        }
>           return str;
>       }
>       //   reserved               4  14.0        0xf
<< signature.asc >>

>
> 
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users

-- 
_______________________________________________
Find what you are looking for with the Lycos Yellow Pages
http://r.lycos.com/r/yp_emailfooter/http://yellowpages.lycos.com/default.asp?SRC=lycos10



More information about the mythtv-users mailing list