
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
|