Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: MythTV: Dev

Enable 4 digit channels in dct-channel

 

 

MythTV dev RSS feed   Index | Next | Previous | View Threaded


ralyon at hotmail

Oct 10, 2008, 11:16 AM

Post #1 of 2 (271 views)
Permalink
Enable 4 digit channels in dct-channel

My apologies if I'm not handling this properly as this is the first time
I've submitted a code change.

My cable provider (Verizon FiOS) has recently rearranged their channels
and are now in the 1000's and after not finding a solution to 'channel'
only allowing 1 to 999 I went ahead and changed the code myself. This is
working for me, but I am certainly no expert to know if it might have an
adverse affect somewhere else. I would appreciate it if someone were to
look over these changes and maybe add them back into MythTV if they are
fine.

Modified file: /trunk/mythtv/contrib/channel_changers/dct-channel/channel.c

Line 145

- if ((send_keypress(KEY_0+((chan/100)%10)))<0 ||
+ if ((send_keypress(KEY_0+((chan/1000)%10)))<0 ||
+ (send_keypress(KEY_0+((chan/100)%10)))<0 ||

Line 201

+ blind_key(KEY_0+((chan/1000)%10));
+ usleep(BLIND_SLEEP * 1000);

Lines 302 - 304

- if (*end!='\0' || chan<1 || chan>999) {
+ if (*end!='\0' || chan<1 || chan>9999) {
fprintf(stderr,"Invalid channel: %s\n",argv[optind]);
- fprintf(stderr,"valid channels are 1 - 999\n");
+ fprintf(stderr,"valid channels are 1 - 9999\n");


I hope this helps,
ralyon


_______________________________________________
mythtv-dev mailing list
mythtv-dev[at]mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev


kormoc at gmail

Oct 10, 2008, 7:05 PM

Post #2 of 2 (238 views)
Permalink
Re: Enable 4 digit channels in dct-channel [In reply to]

On Fri, Oct 10, 2008 at 11:16 AM, Daniel Smith <ralyon[at]hotmail.com> wrote:
> My apologies if I'm not handling this properly as this is the first time
> I've submitted a code change.

Open a ticket in trac (svn.mythtv.org) and attach the diff as a patch
file (svn diff > file.patch). That's the best place for it.
_______________________________________________
mythtv-dev mailing list
mythtv-dev[at]mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev

MythTV dev RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.