aboutsummaryrefslogtreecommitdiffstats
path: root/src/decoder
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-10-11 23:44:21 +0200
committerMax Kellermann <max@duempel.org>2009-10-11 23:44:21 +0200
commita07ab27dae485c253d5f00677ea6ca94c26d7741 (patch)
tree7ecace39b6d950599964680297e9bca07dd00cc4 /src/decoder
parent727c301fbcd285ff781f2d9b538973ca6a4ebcef (diff)
downloadmpd-a07ab27dae485c253d5f00677ea6ca94c26d7741.tar.gz
mpd-a07ab27dae485c253d5f00677ea6ca94c26d7741.tar.xz
mpd-a07ab27dae485c253d5f00677ea6ca94c26d7741.zip
decoder_thread: removed redundant NULL assignments
The while() clause resets the "plugin" variable. We don't need to reset it at the end of the loop body.
Diffstat (limited to '')
-rw-r--r--src/decoder_thread.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/decoder_thread.c b/src/decoder_thread.c
index 9124db033..5140f2ec3 100644
--- a/src/decoder_thread.c
+++ b/src/decoder_thread.c
@@ -164,7 +164,7 @@ static void decoder_run_song(const struct song *song, const char *uri)
if (ret)
break;
- plugin = NULL;
+ assert(dc.state == DECODE_STATE_START);
}
/* if that fails, try suffix matching the URL: */
@@ -180,7 +180,6 @@ static void decoder_run_song(const struct song *song, const char *uri)
break;
assert(dc.state == DECODE_STATE_START);
- plugin = NULL;
}
}
/* fallback to mp3: */