There is a global despotify session, so it should not be initialized
until needed.
---
With this, a spotify playlist can be loaded in daemonized mode.
However, I get no sound output - also not for playing a plain ogg file,
so I believe there is some general MPD problem as well.

 src/playlist/despotify_playlist_plugin.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/playlist/despotify_playlist_plugin.c 
b/src/playlist/despotify_playlist_plugin.c
index 0646de9..39448e0 100644
--- a/src/playlist/despotify_playlist_plugin.c
+++ b/src/playlist/despotify_playlist_plugin.c
@@ -100,7 +100,7 @@ parse_playlist(struct despotify_playlist *ctx,
 static bool
 despotify_playlist_init(G_GNUC_UNUSED const struct config_param *param)
 {
-       return mpd_despotify_get_session() != NULL;
+       return true;
 }
 
 static void
-- 
1.7.1


------------------------------------------------------------------------------
Xperia(TM) PLAY
It's a major breakthrough. An authentic gaming
smartphone on the nation's most reliable network.
And it wants your games.
http://p.sf.net/sfu/verizon-sfdev
_______________________________________________
Musicpd-dev-team mailing list
Musicpd-dev-team@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/musicpd-dev-team

Reply via email to