Hi,

upon trying to play an MMS stream added to the play list, I got this:

    mpd: /tmp/mpd/./src/input_stream.c:85: input_stream_open: Assertion 
`is->plugin->open == ((void *)0) || is->plugin == plugin' failed.

With the following patch applied, it works perfectly.


Thanks for having implemented MMS support :-).

Best regards,
Peter
>From 7bf32b2a08228a455b2bdface318a04b49632794 Mon Sep 17 00:00:00 2001
From: Peter Colberg <pe...@colberg.org>
Date: Wed, 18 Feb 2009 23:25:14 +0100
Subject: [PATCH] mms: fix assertion in input_stream_open.

---
 src/input_mms.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/input_mms.c b/src/input_mms.c
index 2e4b049..d81be08 100644
--- a/src/input_mms.c
+++ b/src/input_mms.c
@@ -56,6 +56,7 @@ input_mms_open(struct input_stream *is, const char *url)
 	   decoder, which seems to work fine*/
 	is->mime = g_strdup("audio/x-ms-wma");
 
+	is->plugin = &input_plugin_mms;
 	is->data = m;
 	is->ready = true;
 	return true;
-- 
1.6.1.3

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Musicpd-dev-team mailing list
Musicpd-dev-team@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/musicpd-dev-team

Reply via email to