From 5036368f540af93372b750fe80e1c191b409a7a9 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 1 Nov 2008 14:51:41 +0100 Subject: decoder: return const decoder_plugin structs The decoder_plugin structs must never change. Don't work with non-const pointers. --- src/decoder_thread.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/decoder_thread.c') 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); -- cgit v1.2.3