diff options
author | Warren Dukes <warren.dukes@gmail.com> | 2004-06-03 02:56:26 +0000 |
---|---|---|
committer | Warren Dukes <warren.dukes@gmail.com> | 2004-06-03 02:56:26 +0000 |
commit | 15c61f6eb06b43097678682f7022d55f4aed9ce0 (patch) | |
tree | 27bf0fc4c1d207a501c7ad64b710b2c8dcc15938 /src/decode.c | |
parent | a29e38bef536c6f824d23fffe2e18c43ac01b5c4 (diff) | |
download | mpd-15c61f6eb06b43097678682f7022d55f4aed9ce0.tar.gz mpd-15c61f6eb06b43097678682f7022d55f4aed9ce0.tar.xz mpd-15c61f6eb06b43097678682f7022d55f4aed9ce0.zip |
don't stop on play command!
git-svn-id: https://svn.musicpd.org/mpd/trunk@1313 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/decode.c')
-rw-r--r-- | src/decode.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/decode.c b/src/decode.c index d8f2fa21f..bb043d6b2 100644 --- a/src/decode.c +++ b/src/decode.c @@ -256,7 +256,7 @@ int decodeSeek(PlayerControl * pc, DecoderControl * dc, OutputBuffer * cb, void decodeStart(PlayerControl * pc, OutputBuffer * cb, DecoderControl * dc) { int ret; InputStream inStream; - InputPlugin * plugin; + InputPlugin * plugin = NULL; char * path; if(isRemoteUrl(pc->utf8url)) { @@ -311,7 +311,9 @@ void decodeStart(PlayerControl * pc, OutputBuffer * cb, DecoderControl * dc) { ret = DECODE_ERROR_UNKTYPE; if(isRemoteUrl(pc->utf8url)) { - plugin = getInputPluginFromMimeType(inStream.mime); + if(inStream.mime) { + plugin = getInputPluginFromMimeType(inStream.mime); + } if(plugin == NULL) { plugin = getInputPluginFromSuffix( getSuffix(dc->utf8url)); |