decoder: return const decoder_plugin structs

The decoder_plugin structs must never change.  Don't work with
non-const pointers.
This commit is contained in:
Max Kellermann
2008-11-01 14:51:41 +01:00
parent 83f6222ae7
commit 5036368f54
7 changed files with 24 additions and 20 deletions

View File

@@ -37,7 +37,7 @@ static void decodeStart(void)
int ret;
bool close_instream = true;
struct input_stream inStream;
struct decoder_plugin *plugin = NULL;
const struct decoder_plugin *plugin;
if (song_is_file(song))
uri = map_song_fs(song, buffer);