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.
This commit is contained in:
parent
727c301fbc
commit
a07ab27dae
@ -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)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
assert(dc.state == DECODE_STATE_START);
|
assert(dc.state == DECODE_STATE_START);
|
||||||
plugin = NULL;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/* fallback to mp3: */
|
/* fallback to mp3: */
|
||||||
|
Loading…
Reference in New Issue
Block a user