jreznik pushed to arts (epel7). "- don't call snd_pcm_close(NULL), triggers assertion failure in ALSA (..more)"

notifications at fedoraproject.org notifications at fedoraproject.org
Thu Apr 2 15:12:09 UTC 2015


>From 63f795dfd7b02f52d765316f62b50d79afeb0edf Mon Sep 17 00:00:00 2001
From: Kevin Kofler <kkofler at fedoraproject.org>
Date: Wed, 24 Mar 2010 19:23:25 +0000
Subject: - don't call snd_pcm_close(NULL), triggers assertion failure in ALSA 
    (#558570)


diff --git a/arts-1.5.10-assertion-failure.patch b/arts-1.5.10-assertion-failure.patch
new file mode 100644
index 0000000..cf30ef8
--- /dev/null
+++ b/arts-1.5.10-assertion-failure.patch
@@ -0,0 +1,23 @@
+diff -ur arts-1.5.10/flow/audioioalsa9.cc arts-1.5.10-assertion-failure/flow/audioioalsa9.cc
+--- arts-1.5.10/flow/audioioalsa9.cc	2007-10-08 11:47:09.000000000 +0200
++++ arts-1.5.10-assertion-failure/flow/audioioalsa9.cc	2010-03-24 20:07:13.000000000 +0100
+@@ -176,7 +176,7 @@
+ 			_error += " can't be opened for capture (";
+ 			_error += snd_strerror(err);
+ 			_error += ")";
+-			snd_pcm_close(m_pcm_playback);
++			if (m_pcm_playback) snd_pcm_close(m_pcm_playback);
+ 			return false;
+ 		}
+ 		snd_pcm_nonblock(m_pcm_capture, 0);
+@@ -190,8 +190,8 @@
+ 	/* set PCM communication parameters */
+ 	if (((_direction & directionWrite) && setPcmParams(m_pcm_playback)) ||
+ 	    ((_direction & directionRead) && setPcmParams(m_pcm_capture))) {
+-		snd_pcm_close(m_pcm_playback);
+-		snd_pcm_close(m_pcm_capture);
++		if (m_pcm_playback) snd_pcm_close(m_pcm_playback);
++		if (m_pcm_capture) snd_pcm_close(m_pcm_capture);
+ 		return false;
+ 	}
+ 
diff --git a/arts.spec b/arts.spec
index 1db3de7..30d7bc6 100644
--- a/arts.spec
+++ b/arts.spec
@@ -10,7 +10,7 @@ Summary: aRts (analog realtime synthesizer) - the KDE sound system
 Group:   System Environment/Daemons
 Epoch:   8
 Version: 1.5.10
-Release: 11%{?dist}
+Release: 12%{?dist}
 
 License: LGPLv2+
 Url: http://www.kde.org
@@ -26,6 +26,8 @@ Patch7: arts-1.5.0-check_tmp_dir.patch
 Patch8: arts-1.5.2-multilib.patch
 # don't pop up a dialog on CPU overload (#361891)
 Patch9: arts-1.5.10-cpu-overload-quiet.patch
+# don't call snd_pcm_close(NULL), triggers assertion failure in ALSA (#558570)
+Patch10: arts-1.5.10-assertion-failure.patch
 # kde#93359
 Patch50: arts-1.5.4-dlopenext.patch
 Patch51: kde-3.5-libtool-shlibext.patch
@@ -85,6 +87,7 @@ Install %{name}-devel if you intend to write applications using aRts.
 %patch7 -p1 -b .check_tmp_dir
 %patch8 -p1 -b .multilib
 %patch9 -p1 -b .cpu-overload-quiet
+%patch10 -p1 -b .assertion-failure
 
 %patch50 -p1 -b .dlopenext
 %patch51 -p1 -b .libtool-shlibext
@@ -196,17 +199,20 @@ rm -rf  %{buildroot}
 
 
 %changelog
-* Wed Dec 16 2009 Kevin Kofler <Kevin at tigcc.ticalc.org> - 1.5.10-11
+* Wed Mar 24 2010 Kevin Kofler <Kevin at tigcc.ticalc.org> - 8:1.5.10-12
+- don't call snd_pcm_close(NULL), triggers assertion failure in ALSA (#558570)
+
+* Wed Dec 16 2009 Kevin Kofler <Kevin at tigcc.ticalc.org> - 8:1.5.10-11
 - don't pop up a dialog on CPU overload (#361891)
 
-* Thu Dec 10 2009 Stepan Kasal <skasal at redhat.com> - 1.5.10-10
+* Thu Dec 10 2009 Stepan Kasal <skasal at redhat.com> - 8:1.5.10-10
 - patch autoconfigury to build with autoconf >= 2.64
 
-* Sun Dec 06 2009 Than Ngo <than at redhat.com> - 1.5.10-9
+* Sun Dec 06 2009 Than Ngo <than at redhat.com> - 8:1.5.10-9
 - fix url
 - fix security issues in libltdl (CVE-2009-3736)
 
-* Wed Sep 02 2009 Than Ngo <than at redhat.com> - 1.5.10-8
+* Wed Sep 02 2009 Than Ngo <than at redhat.com> - 8:1.5.10-8
 - drop support fedora < 10
 
 * Fri Jul 24 2009 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 8:1.5.10-7
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/arts.git/commit/?h=epel7&id=63f795dfd7b02f52d765316f62b50d79afeb0edf


More information about the scm-commits mailing list