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

Stan Seibert volsung at xiph.org
Sun Dec 16 13:45:27 PST 2001



volsung     01/12/16 13:45:26

  Modified:    ogg123   Tag: volsung_kc_20011011 ogg123.c
  Log:
  Fixed segfault caused by pausing without buffering enabled.

Revision  Changes    Path
No                   revision

No                   revision

1.39.2.30.2.23 +7 -3      vorbis-tools/ogg123/ogg123.c

Index: ogg123.c
===================================================================
RCS file: /usr/local/cvsroot/vorbis-tools/ogg123/ogg123.c,v
retrieving revision 1.39.2.30.2.22
retrieving revision 1.39.2.30.2.23
diff -u -r1.39.2.30.2.22 -r1.39.2.30.2.23
--- ogg123.c	2001/12/16 00:31:41	1.39.2.30.2.22
+++ ogg123.c	2001/12/16 21:45:25	1.39.2.30.2.23
@@ -14,7 +14,7 @@
  *                                                                  *
  ********************************************************************
 
- last mod: $Id: ogg123.c,v 1.39.2.30.2.22 2001/12/16 00:31:41 volsung Exp $
+ last mod: $Id: ogg123.c,v 1.39.2.30.2.23 2001/12/16 21:45:25 volsung Exp $
 
  ********************************************************************/
 
@@ -429,11 +429,15 @@
       }
 
       if (sig_request.pause) {
-	buffer_thread_pause (audio_buffer);
+	if (audio_buffer)
+	  buffer_thread_pause (audio_buffer);
+
         kill (getpid(), SIGSTOP); /* We block here until we unpause */
         
         /* Done pausing */
-	buffer_thread_unpause (audio_buffer);
+	if (audio_buffer)
+	  buffer_thread_unpause (audio_buffer);
+
         sig_request.pause = 0;
       }
 

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