diff options
author | David Guibert <david.guibert@gmail.com> | 2009-03-07 19:49:00 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-03-07 19:55:09 +0100 |
commit | 498ec26f25e11cf5eefd86dd4abebbf3722dc999 (patch) | |
tree | e06215feb49d1425dfb89049d182005b4ce89959 /src/decoder/fluidsynth_plugin.c | |
parent | a1534ba7c2691c0bb81c3b288fc76cf31c6b48c9 (diff) | |
download | mpd-498ec26f25e11cf5eefd86dd4abebbf3722dc999.tar.gz mpd-498ec26f25e11cf5eefd86dd4abebbf3722dc999.tar.xz mpd-498ec26f25e11cf5eefd86dd4abebbf3722dc999.zip |
pulse_mixer: allow mpd to reconnect to the pulse mixer
This patch follows the commit 21bb10f4b.
>From Max Kellermann:
> I removed the daemonization changes in main.c. Please explain why you
> changed that. If you need it for some reason, make that a separate
> patch with a good description of your rationale.
> That's the biggest flaw of your code: it opens the mixer device in the
> init() method, while the open() method is empty. When the pulse
> daemon is not available (either during MPD startup or when it dies
> while MPD runs), the plugin will not even attempt to reconnect to
> pulse. Please move the code to the open() method, to make that work.
I changed the daemonize call as the fork losts the connection to the
pulse server. According to your remark, the init() method should be
moved to the open() ones.
With the modification, mpd is able to reconnect the pulse mixer after
restarting the pulseaudio daemon.
Signed-off-by: David Guibert <david.guibert@gmail.com>
Signed-off-by: Max Kellermann <max@duempel.org>
Diffstat (limited to 'src/decoder/fluidsynth_plugin.c')
0 files changed, 0 insertions, 0 deletions