1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-23 04:23:08 +00:00

- Fix crash destroying stream in OSS sydneyaudio backend

- Bump PORTREVISION

PR:		ports/151728
Submitted by:	Ilya A. Arhipov <pa36ouHu4er AT yandex.ru>,
		Alexey Shuvaev <shuvaev AT physik.uni-wuerzburg.de>
Obtained from:	Mozilla Bugzilla ID 562488
This commit is contained in:
Beat Gaetzi 2010-10-26 19:18:53 +00:00
parent 6f05697fa1
commit 280f42698d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=263627
2 changed files with 34 additions and 0 deletions

View File

@ -7,6 +7,7 @@
PORTNAME= seamonkey
DISTVERSION= 2.0.9
PORTREVISION= 1
CATEGORIES?= www ipv6
MASTER_SITES= ${MASTER_SITE_MOZILLA_EXTENDED}
MASTER_SITE_SUBDIR= seamonkey/releases/${DISTVERSION}/source

View File

@ -0,0 +1,33 @@
--- mozilla/media/libsydneyaudio/src/sydney_audio_oss.c.orig 2010-10-12 21:45:53.000000000 +0400
+++ mozilla/media/libsydneyaudio/src/sydney_audio_oss.c 2010-10-25 23:33:08.919096567 +0400
@@ -258,6 +258,7 @@
int
sa_stream_destroy(sa_stream_t *s) {
int result = SA_SUCCESS;
+ pthread_t thread_id;
if (s == NULL) {
return SA_SUCCESS;
@@ -265,8 +266,10 @@
pthread_mutex_lock(&s->mutex);
+ thread_id = s->thread_id;
+
/*
- * This causes the thread sending data to ALSA to stop
+ * This causes the thread sending data to OSS to stop
*/
s->thread_id = 0;
@@ -281,6 +284,8 @@
pthread_mutex_unlock(&s->mutex);
+ pthread_join(thread_id, NULL);
+
/*
* Release resources.
*/