From 18e5825cae10e3500ff75fdbbb7a768b8387a1c2 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 27 Dec 2005 06:12:28 +0000 Subject: decode.c (OggFLAC branch-only): do not assume mp3 is supported, EVER git-svn-id: https://svn.musicpd.org/mpd/branches/oggflac@3743 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- src/decode.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/decode.c b/src/decode.c index 1c78065b4..28a64e169 100644 --- a/src/decode.c +++ b/src/decode.c @@ -358,10 +358,11 @@ void decodeStart(PlayerControl * pc, OutputBuffer * cb, DecoderControl * dc) { /* this is needed for bastard streams that don't have a suffix or set the mimeType */ if(plugin == NULL) { - plugin = getInputPluginFromName("mp3"); /* we already know our mp3Plugin supports streams, no * need to check for stream{Types,DecodeFunc} */ - ret = plugin->streamDecodeFunc(cb, dc, &inStream); + if ((plugin = getInputPluginFromName("mp3"))) + ret = plugin->streamDecodeFunc(cb, dc, + &inStream); } } else { -- cgit v1.2.3