[xiph-cvs] cvs commit: icecast/src source.c

Michael Smith msmith at xiph.org
Tue Mar 18 23:59:33 PST 2003



msmith      03/03/19 02:59:32

  Modified:    src      source.c
  Log:
  Fix ordering of some calls in source shutdown, silly bug.
  Remove wrong comment.

Revision  Changes    Path
1.46      +2 -5      icecast/src/source.c

Index: source.c
===================================================================
RCS file: /usr/local/cvsroot/icecast/src/source.c,v
retrieving revision 1.45
retrieving revision 1.46
diff -u -r1.45 -r1.46
--- source.c	19 Mar 2003 07:55:42 -0000	1.45
+++ source.c	19 Mar 2003 07:59:32 -0000	1.46
@@ -159,9 +159,6 @@
 }
     
 
-/* The caller MUST have a current write lock on global.source_tree when calling
- * this
- */
 void *source_main(void *arg)
 {
     source_t *source = (source_t *)arg;
@@ -633,10 +630,10 @@
     if(source->dumpfile)
         fclose(source->dumpfile);
 
-    source_free_source(source);
-
     /* release our hold on the lock so the main thread can continue cleaning up */
     thread_rwlock_unlock(source->shutdown_rwlock);
+
+    source_free_source(source);
 
     thread_exit(0);
       

<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