aboutsummaryrefslogtreecommitdiffstats
path: root/src/decoder_thread.c
diff options
context:
space:
mode:
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: */