aboutsummaryrefslogtreecommitdiff
path: root/audio/vorbis-tools
diff options
context:
space:
mode:
authorChristian Weisgerber <naddy@FreeBSD.org>2002-01-19 15:37:11 +0000
committerChristian Weisgerber <naddy@FreeBSD.org>2002-01-19 15:37:11 +0000
commiteb7293d59ea89ee210f6ab5be53258f5470bb8a8 (patch)
treea6907d4ae8425c56c22fc2b5a75b23c3c0408312 /audio/vorbis-tools
parente42ff35612a85bb74368370cb513ffad8fa2e657 (diff)
downloadports-eb7293d59ea89ee210f6ab5be53258f5470bb8a8.tar.gz
ports-eb7293d59ea89ee210f6ab5be53258f5470bb8a8.zip
Notes
Diffstat (limited to 'audio/vorbis-tools')
-rw-r--r--audio/vorbis-tools/files/patch-ogg123::buffer.c32
1 files changed, 23 insertions, 9 deletions
diff --git a/audio/vorbis-tools/files/patch-ogg123::buffer.c b/audio/vorbis-tools/files/patch-ogg123::buffer.c
index f7523092ac85..409b5ed97505 100644
--- a/audio/vorbis-tools/files/patch-ogg123::buffer.c
+++ b/audio/vorbis-tools/files/patch-ogg123::buffer.c
@@ -2,16 +2,30 @@
$FreeBSD$
--- ogg123/buffer.c.orig Thu Dec 20 01:24:53 2001
-+++ ogg123/buffer.c Wed Jan 16 03:26:15 2002
-@@ -88,9 +88,11 @@
++++ ogg123/buffer.c Sat Jan 19 16:24:44 2002
+@@ -85,12 +85,6 @@
+ buf_t *buf = (buf_t *)arg;
- /* Cleanup thread data structures */
- pthread_mutex_unlock(&buf->mutex);
-+#if 0 /* KLUDGE: disabling this keeps ogg123 from crashing */
- pthread_mutex_destroy(&buf->mutex);
- pthread_cond_destroy(&buf->playback_cond);
- pthread_cond_destroy(&buf->write_cond);
-+#endif
+ DEBUG("Enter buffer_thread_cleanup");
+-
+- /* Cleanup thread data structures */
+- pthread_mutex_unlock(&buf->mutex);
+- pthread_mutex_destroy(&buf->mutex);
+- pthread_cond_destroy(&buf->playback_cond);
+- pthread_cond_destroy(&buf->write_cond);
}
+@@ -430,6 +424,12 @@
+ void buffer_destroy (buf_t *buf)
+ {
+ DEBUG("buffer_destroy");
++
++ /* Cleanup pthread variables */
++ pthread_mutex_destroy(&buf->mutex);
++ pthread_cond_destroy(&buf->write_cond);
++ pthread_cond_destroy(&buf->playback_cond);
++
+ free(buf);
+ }
+