Skip to contentSkip to conversation

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

linux-dvb amaora 1 participant 1 message Jun 30, 2008 Media (V4L/DVB)

lore
Share & tools
lore

amaora

author
#0 lore raw

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

Quoted 1 line

static int refresh_rate = 1000;

87c88,89
< " or -n numbers for zapping\n";
---

Quoted 2 lines

" or -n numbers for zapping\n"
" -t number : refresh rate in msec (default 1000)\n";

197a200

Quoted 1 line
   struct timeval t0, t1;

223c226,234
< usleep(1000000);
---

Quoted 9 lines
    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) {
---

Quoted 1 line
   while ((opt = getopt(argc, argv, "hqrn:a:f:d:c:l:xit:")) != -1) {

522a534,540

Quoted 7 lines
        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
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb