Commit a07ab27d authored by Max Kellermann's avatar Max Kellermann

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.
parent 727c301f
...@@ -164,7 +164,7 @@ static void decoder_run_song(const struct song *song, const char *uri) ...@@ -164,7 +164,7 @@ static void decoder_run_song(const struct song *song, const char *uri)
if (ret) if (ret)
break; break;
plugin = NULL; assert(dc.state == DECODE_STATE_START);
} }
/* if that fails, try suffix matching the URL: */ /* if that fails, try suffix matching the URL: */
...@@ -180,7 +180,6 @@ static void decoder_run_song(const struct song *song, const char *uri) ...@@ -180,7 +180,6 @@ static void decoder_run_song(const struct song *song, const char *uri)
break; break;
assert(dc.state == DECODE_STATE_START); assert(dc.state == DECODE_STATE_START);
plugin = NULL;
} }
} }
/* fallback to mp3: */ /* fallback to mp3: */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment