show input when verbose is enabled

This commit is contained in:
veejay
2023-11-07 16:53:04 +01:00
parent 287579d563
commit 203bedd711

View File

@@ -159,6 +159,9 @@ static int vjsend( int cmd, unsigned char *buf )
return 0;
}
if(verbose)
fprintf(stdout, "%s\n", buf);
return 1;
}
@@ -282,6 +285,8 @@ static int processLine(FILE *infile, FILE *outfile, char *tmp, size_t len)
{
int wait_frames_ = 1;
if( sscanf( tmp + 1, "%d" , &wait_frames_ ) == 1 ) {
if(verbose)
fprintf(stdout, "wait %d frames\n", wait_frames_);
if( vj_flush( wait_frames_ ) == 0)
return 0;
}
@@ -482,7 +487,6 @@ static void do_work(int stdin_fd, FILE *std_out)
int main(int argc, char *argv[])
{
int i = 0;
int n = 0;
char option[2];
int err = 0;