mms: fix assertion in input_stream_open

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
This commit is contained in:
Peter Colberg 2009-02-18 22:43:10 +01:00 committed by Max Kellermann
parent 9f8740a0d6
commit de6cc2691f

View File

@ -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;