[xiph-cvs] cvs commit: vorbis-tools/ogg123 ogg123.c

Stan Seibert volsung at xiph.org
Sun Aug 12 19:10:40 PDT 2001



volsung     01/08/12 19:10:39

  Modified:    ogg123   ogg123.c
  Log:
  I'm an idiot and broke the option handling.  Never believe the comments
  in a source file. :)

Revision  Changes    Path
1.46      +11 -9     vorbis-tools/ogg123/ogg123.c

Index: ogg123.c
===================================================================
RCS file: /usr/local/cvsroot/vorbis-tools/ogg123/ogg123.c,v
retrieving revision 1.45
retrieving revision 1.46
diff -u -r1.45 -r1.46
--- ogg123.c	2001/08/12 14:04:21	1.45
+++ ogg123.c	2001/08/13 02:10:39	1.46
@@ -14,7 +14,7 @@
  *                                                                  *
  ********************************************************************
 
- last mod: $Id: ogg123.c,v 1.45 2001/08/12 14:04:21 volsung Exp $
+ last mod: $Id: ogg123.c,v 1.46 2001/08/13 02:10:39 volsung Exp $
 
  ********************************************************************/
 
@@ -213,17 +213,19 @@
         }
     }
 
-    /* Add last device to device list or use the default device */
-    if (temp_driver_id < 0) 
+    /* Use the default device if needed */
+    if (temp_driver_id < 0) {
         temp_driver_id = ao_default_driver_id();
         
-    if (temp_driver_id < 0) {
-        fprintf(stderr,
-	      "Could not load default driver.  Audio devices may be already in use.\nExiting.\n");
-        exit(1);
-    }
-    opt.outdevices = append_device(opt.outdevices, temp_driver_id, 
+	if (temp_driver_id < 0) {
+	  fprintf(stderr,
+		  "Could not load default driver.  Audio devices may be already in use.\nExiting.\n");
+	  exit(1);
+	}
+
+	opt.outdevices = append_device(opt.outdevices, temp_driver_id, 
                                        temp_options, NULL);
+    }
 
     if (optind == argc) {
         usage();

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