diff options
author | Max Kellermann <max@duempel.org> | 2008-11-01 14:51:41 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-11-01 14:51:41 +0100 |
commit | 5036368f540af93372b750fe80e1c191b409a7a9 (patch) | |
tree | 38fcbd9a827f1271995e86307db4e80e2c201945 /src/decoder_thread.c | |
parent | 83f6222ae74e6601383cf934a1bbf176656bf5c5 (diff) | |
download | mpd-5036368f540af93372b750fe80e1c191b409a7a9.tar.gz mpd-5036368f540af93372b750fe80e1c191b409a7a9.tar.xz mpd-5036368f540af93372b750fe80e1c191b409a7a9.zip |
decoder: return const decoder_plugin structs
The decoder_plugin structs must never change. Don't work with
non-const pointers.
Diffstat (limited to 'src/decoder_thread.c')
-rw-r--r-- | src/decoder_thread.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/decoder_thread.c b/src/decoder_thread.c index 14a1f858f..659d43603 100644 --- a/src/decoder_thread.c +++ b/src/decoder_thread.c @@ -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); |