[xiph-cvs] cvs commit: ao/src audio_out.c

Kenneth C. Arnold kcarnold at xiph.org
Sun Dec 17 05:24:10 PST 2000



kcarnold    00/12/17 05:24:10

  Modified:    src      audio_out.c
  Log:
  Fix for case where ao_initialize is called after ao_shutdown.

Revision  Changes    Path
1.8       +3 -0      ao/src/audio_out.c

Index: audio_out.c
===================================================================
RCS file: /usr/local/cvsroot/ao/src/audio_out.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- audio_out.c	2000/11/18 06:36:58	1.7
+++ audio_out.c	2000/12/17 13:24:10	1.8
@@ -161,6 +161,9 @@
         /* free the standard drivers */
         if (driver_head->next) free(driver_head->next);
         if (driver_head->next) free(driver_head);
+	
+	/* NULL out driver_head or ao_initialize won't work */
+	driver_head = NULL;
 }
 
 int ao_get_driver_id(const char *short_name)

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