music player daemon (fork)
Go to file
David Guibert 498ec26f25 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>
2009-03-07 19:55:09 +01:00
doc Add sticker list command. 2009-03-03 07:49:23 +01:00
m4 configure: Move the faad stuff to m4/faad.m4 2009-03-06 08:30:59 -08:00
scripts added build test script "test.sh" 2008-12-24 11:35:57 +01:00
src pulse_mixer: allow mpd to reconnect to the pulse mixer 2009-03-07 19:55:09 +01:00
test test: init input streams cause decoders are using it 2009-03-03 21:30:26 +01:00
.gitignore test: added test program which reads tags from a file 2009-02-28 17:04:37 +01:00
AUTHORS AUTHORS: added Romain Bignon, Rasmus Steinke 2009-03-07 16:13:23 +01:00
COPYING Update the text of the GPLv2, this fixes the address and a few other oddities. 2008-12-20 19:02:09 -08:00
INSTALL wildmidi: new decoder plugin for MIDI files 2009-02-12 16:43:18 +01:00
Makefile.am pulse mixer 2009-03-07 15:59:20 +01:00
NEWS cmdline: Print available protocols when --version is run. 2009-03-03 21:25:19 +01:00
README Word wrap to 80 char lines 2008-12-20 19:27:02 -08:00
TODO Update ChangeLog and TODO 2008-02-25 00:19:14 +00:00
UPGRADING UPGRADING: added a 0.14 section 2008-11-05 21:27:30 +01:00
autogen.sh autogen.sh: removed libtoolize 2008-11-22 14:57:06 +01:00
configure.ac configure.ac: fix --enable-X variable names 2009-03-07 15:50:19 +01:00
valgrind.suppressions updated valgrind.suppressions 2009-03-03 07:56:06 +01:00

README

		       Music Player Daemon (MPD)
			http://www.musicpd.org

A daemon for playing music of various formats.  Music is played through the 
server's audio device.  The daemon stores info about all available music, 
and this info can be easily searched and retrieved.  Player control, info
retrieval, and playlist management can all be managed remotely.

For basic installation information see the INSTALL file.

MPD is released under the GNU General Public License version 2, which is
distributed in the COPYING file.

You should have received a copy of the GNU General Public License along with
this program.  If not, see <http://www.gnu.org/licenses/>.