public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
* [linux-dvb] Small patch for szap (from linuxtv-dvb-apps-1.1.1.tar.gz)
@ 2008-06-30 16:52 amaora
  0 siblings, 0 replies; only message in thread
From: amaora @ 2008-06-30 16:52 UTC (permalink / raw)
  To: linux-dvb

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@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-06-30 16:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-30 16:52 [linux-dvb] Small patch for szap (from linuxtv-dvb-apps-1.1.1.tar.gz) amaora

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox