aboutsummaryrefslogtreecommitdiffstats
path: root/src/decode.c
diff options
context:
space:
mode:
authorWarren Dukes <warren.dukes@gmail.com>2004-06-03 02:58:41 +0000
committerWarren Dukes <warren.dukes@gmail.com>2004-06-03 02:58:41 +0000
commitc453f7dc52fcfd9233e857a690bf375330d6cfe0 (patch)
tree2b573ea7b7133cc7b0a222c77862347069cbbb2c /src/decode.c
parent15c61f6eb06b43097678682f7022d55f4aed9ce0 (diff)
downloadmpd-c453f7dc52fcfd9233e857a690bf375330d6cfe0.tar.gz
mpd-c453f7dc52fcfd9233e857a690bf375330d6cfe0.tar.xz
mpd-c453f7dc52fcfd9233e857a690bf375330d6cfe0.zip
remove debug code, and preivous commit fixes a segfault due to a doble free on an error trying to decode mp3's
git-svn-id: https://svn.musicpd.org/mpd/trunk@1314 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r--src/decode.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/decode.c b/src/decode.c
index bb043d6b2..f19301c66 100644
--- a/src/decode.c
+++ b/src/decode.c
@@ -311,9 +311,7 @@ void decodeStart(PlayerControl * pc, OutputBuffer * cb, DecoderControl * dc) {
ret = DECODE_ERROR_UNKTYPE;
if(isRemoteUrl(pc->utf8url)) {
- if(inStream.mime) {
- plugin = getInputPluginFromMimeType(inStream.mime);
- }
+ plugin = getInputPluginFromMimeType(inStream.mime);
if(plugin == NULL) {
plugin = getInputPluginFromSuffix(
getSuffix(dc->utf8url));