[xiph-cvs] cvs commit: vorbis-tools/ogginfo ogginfo2.c
Michael Smith
msmith at xiph.org
Mon Mar 24 01:05:57 PST 2003
msmith 03/03/24 04:05:57
Modified: ogginfo ogginfo2.c
Log:
Make ogginfo return a useful status code.
Revision Changes Path
1.20 +9 -1 vorbis-tools/ogginfo/ogginfo2.c
Index: ogginfo2.c
===================================================================
RCS file: /usr/local/cvsroot/vorbis-tools/ogginfo/ogginfo2.c,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -r1.19 -r1.20
--- ogginfo2.c 6 Mar 2003 14:21:46 -0000 1.19
+++ ogginfo2.c 24 Mar 2003 09:05:57 -0000 1.20
@@ -92,6 +92,8 @@
static int printwarn = 1;
static int verbose = 1;
+static int flawed;
+
static stream_set *create_stream_set(void) {
stream_set *set = calloc(1, sizeof(stream_set));
@@ -118,6 +120,7 @@
{
va_list ap;
+ flawed = 1;
if(!printwarn)
return;
@@ -130,6 +133,8 @@
{
va_list ap;
+ flawed = 1;
+
va_start(ap, format);
vfprintf(stdout, format, ap);
va_end(ap);
@@ -730,9 +735,12 @@
}
for(f=optind; f < argc; f++) {
+ flawed = 0;
process_file(argv[f]);
+ if(flawed != 0)
+ ret = flawed;
}
- return 0;
+ return ret;
}
<p><p>--- >8 ----
List archives: http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'cvs-request at xiph.org'
containing only the word 'unsubscribe' in the body. No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.
More information about the commits
mailing list