[xiph-cvs] cvs commit: snatch README libsnatch.c

Monty xiphmont at xiph.org
Mon Nov 12 18:29:24 PST 2001



xiphmont    01/11/12 18:29:23

  Modified:    .        README libsnatch.c
  Log:
  add a little header to make determining sync for conversion tools easier.

Revision  Changes    Path
1.5       +2 -2      snatch/README

Index: README
===================================================================
RCS file: /usr/local/cvsroot/snatch/README,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- README	2001/11/12 23:27:05	1.4
+++ README	2001/11/13 02:29:23	1.5
@@ -4,7 +4,7 @@
  learned."
          --Bruce Ediger, bediger at teal.csn.org, in comp.os.linux.misc
 
-Although Snatch has a farily simple, friendly interface, some
+Although Snatch has a fairly simple, friendly interface, some
 documentation is in order.  As a wise man once remarked, "You'd be
 surprised."
 
@@ -337,7 +337,7 @@
 
 8) apply
 
-Same as 'ok', but doe snot close the Configuration panel.
+Same as 'ok', but does not close the Configuration panel.
 
 9) cancel
 

1.26      +43 -0     snatch/libsnatch.c

Index: libsnatch.c
===================================================================
RCS file: /usr/local/cvsroot/snatch/libsnatch.c,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -r1.25 -r1.26
--- libsnatch.c	2001/11/12 23:16:25	1.25
+++ libsnatch.c	2001/11/13 02:29:23	1.26
@@ -614,6 +614,21 @@
     if(!strcmp(outpath,"-")){
       outfile_fd=STDOUT_FILENO;
       if(debug)fprintf(stderr,"    ...: Capturing to stdout\n");
+
+      if(videocount){
+	if(audio_channels){
+	  gwrite(outfile_fd,"SNATCHAV---\n",6);
+	}else{
+	  gwrite(outfile_fd,"SNATCH-V---\n",6);
+	}
+      }else{
+	if(audio_channels){
+	  gwrite(outfile_fd,"SNATCHA----\n",6);
+	}else{
+	  gwrite(outfile_fd,"SNATCH-----\n",6);
+	}
+      }
+
     }else{
       struct stat buf;
       int ret=stat(outpath,&buf);
@@ -664,6 +679,20 @@
           if(debug)fprintf(stderr,"    ...: Capturing to file %s\n",buf2);
         }
         
+	if(videocount){
+	  if(audio_channels){
+	    gwrite(outfile_fd,"SNATCHAV---\n",6);
+	  }else{
+	    gwrite(outfile_fd,"SNATCH-V---\n",6);
+	  }
+	}else{
+	  if(audio_channels){
+	    gwrite(outfile_fd,"SNATCHA----\n",6);
+	  }else{
+	    gwrite(outfile_fd,"SNATCH-----\n",6);
+	  }
+	}
+	
       }else{
         outfile_fd=open64(outpath,O_RDWR|O_CREAT|O_APPEND,0770);
         if(outfile_fd<0){
@@ -672,6 +701,20 @@
           outfile_fd=-2;
         }else{
           if(debug)fprintf(stderr,"    ...: Capturing to file %s\n",outpath);
+	  
+	  if(videocount){
+	    if(audio_channels){
+	      gwrite(outfile_fd,"SNATCHAV---\n",6);
+	    }else{
+	      gwrite(outfile_fd,"SNATCH-V---\n",6);
+	    }
+	  }else{
+	    if(audio_channels){
+	      gwrite(outfile_fd,"SNATCHA----\n",6);
+	    }else{
+	      gwrite(outfile_fd,"SNATCH-----\n",6);
+	    }
+	  }
         }
       }
     }

--- >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