Small patch for szap (from linuxtv-dvb-apps-1.1.1.tar.gz)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I modified szap for change of a line output frequency. You could not 
include change in yours CVS/Mercurial/Downloads? It is necessary for 
szapfe (http://szapfe.sourceforge.net/), changes not greater,

69a70
 > static int refresh_rate = 1000;
87c88,89
<     "                 or -n numbers for zapping\n";
---
 >     "                 or -n numbers for zapping\n"
 >     "     -t number : refresh rate in msec (default 1000)\n";
197a200
 >    struct timeval t0, t1;
223c226,234
<       usleep(1000000);
---
 >     gettimeofday( &t0, NULL );
 >     gettimeofday( &t1, NULL );
 >     while ( abs( ( t1.tv_usec + t1.tv_sec * 1000000 ) -
 >         ( t0.tv_usec + t0.tv_sec * 1000000 ) ) < refresh_rate * 1000 )
 >     {
 >         usleep( 1000 );
 >         gettimeofday( &t1, NULL );
 >     }
 >
482c493
<    while ((opt = getopt(argc, argv, "hqrn:a:f:d:c:l:xi")) != -1) {
---
 >    while ((opt = getopt(argc, argv, "hqrn:a:f:d:c:l:xit:")) != -1) {
522a534,540
 >         break;
 >      case 't':
 >         refresh_rate = ( int ) strtoul( optarg, NULL, 0 );
 >         if ( refresh_rate <= 0 )
 >             refresh_rate = 1;
 >         break;
 >

Though I still doubt of necessity of this my software. Excuse for bad 
English. In advance thanks.

Regards,
amaora

_______________________________________________
linux-dvb mailing list
linux-dvb@xxxxxxxxxxx
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

[Index of Archives]     [Linux Media]     [Video 4 Linux]     [Asterisk]     [Samba]     [Xorg]     [Xfree86]     [Linux USB]

  Powered by Linux