[pulseaudio-commits] [SCM] PulseAudio Sound Server branch, master, updated. v0.9.19-494-gf081c15
Lennart Poettering
gitmailer-noreply at 0pointer.de
Fri May 7 16:30:29 PDT 2010
This is an automated email from the git hooks/post-receive script. It was
generated because of a push to the "PulseAudio Sound Server" repository.
The master branch has been updated
from cdc2769162c7e4d4bbab0b221829c0caca31c43d (commit)
- Log -----------------------------------------------------------------
f081c15 jack: Prevent crash on jack server shutdown
-----------------------------------------------------------------------
Summary of changes:
src/modules/jack/module-jack-sink.c | 7 ++++---
src/modules/jack/module-jack-source.c | 6 +++---
2 files changed, 7 insertions(+), 6 deletions(-)
-----------------------------------------------------------------------
commit f081c152f3d5f6a70edc6b7369445229b4f6a1b8
Author: David Henningsson <diwic at ubuntu.com>
Date: Mon May 3 11:41:47 2010 +0200
jack: Prevent crash on jack server shutdown
diff --git a/src/modules/jack/module-jack-sink.c b/src/modules/jack/module-jack-sink.c
index 4a0d384..08a8bef 100644
--- a/src/modules/jack/module-jack-sink.c
+++ b/src/modules/jack/module-jack-sink.c
@@ -147,6 +147,7 @@ static int sink_process_msg(pa_msgobject *o, int code, void *data, int64_t offse
pa_sample_spec ss;
/* Humm, we're not RUNNING, hence let's write some silence */
+ /* This can happen if we're paused, or during shutdown (when we're unlinked but jack is still running). */
ss = u->sink->sample_spec;
ss.channels = 1;
@@ -480,12 +481,12 @@ void pa__done(pa_module*m) {
if (!(u = m->userdata))
return;
- if (u->client)
- jack_client_close(u->client);
-
if (u->sink)
pa_sink_unlink(u->sink);
+ if (u->client)
+ jack_client_close(u->client);
+
if (u->thread) {
pa_asyncmsgq_send(u->thread_mq.inq, NULL, PA_MESSAGE_SHUTDOWN, NULL, 0, NULL);
pa_thread_free(u->thread);
diff --git a/src/modules/jack/module-jack-source.c b/src/modules/jack/module-jack-source.c
index 2d152b3..6b12840 100644
--- a/src/modules/jack/module-jack-source.c
+++ b/src/modules/jack/module-jack-source.c
@@ -425,12 +425,12 @@ void pa__done(pa_module*m) {
if (!(u = m->userdata))
return;
- if (u->client)
- jack_client_close(u->client);
-
if (u->source)
pa_source_unlink(u->source);
+ if (u->client)
+ jack_client_close(u->client);
+
if (u->thread) {
pa_asyncmsgq_send(u->thread_mq.inq, NULL, PA_MESSAGE_SHUTDOWN, NULL, 0, NULL);
pa_thread_free(u->thread);
--
hooks/post-receive
PulseAudio Sound Server
More information about the pulseaudio-commits
mailing list