diff options
author | Max Kellermann <max@duempel.org> | 2008-11-08 13:33:44 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-11-08 13:33:44 +0100 |
commit | 8cbdc2667e6f4f3713c329ae21aa3d8ae73fab24 (patch) | |
tree | ba80b788ade0e1d8ded40123852a7943a6db8434 /src/decoder_thread.c | |
parent | 343a8a20e3fe37c2d998b09d6bddceddecb0182d (diff) | |
download | mpd-8cbdc2667e6f4f3713c329ae21aa3d8ae73fab24.tar.gz mpd-8cbdc2667e6f4f3713c329ae21aa3d8ae73fab24.tar.xz mpd-8cbdc2667e6f4f3713c329ae21aa3d8ae73fab24.zip |
decoder: removed "plugin" from the decoder struct
decoder.plugin was a write-only attribute.
Diffstat (limited to 'src/decoder_thread.c')
-rw-r--r-- | src/decoder_thread.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/decoder_thread.c b/src/decoder_thread.c index a468f1069..7c870d6e7 100644 --- a/src/decoder_thread.c +++ b/src/decoder_thread.c @@ -123,7 +123,6 @@ static void decoder_run(void) continue; if (!decoder_try_decode(plugin, &input_stream)) continue; - decoder.plugin = plugin; ret = plugin->stream_decode(&decoder, &input_stream); break; @@ -136,7 +135,6 @@ static void decoder_run(void) /* we already know our mp3Plugin supports streams, no * need to check for stream{Types,DecodeFunc} */ if ((plugin = decoder_plugin_from_name("mp3"))) { - decoder.plugin = plugin; ret = plugin->stream_decode(&decoder, &input_stream); } @@ -151,11 +149,9 @@ static void decoder_run(void) if (plugin->file_decode != NULL) { input_stream_close(&input_stream); close_instream = false; - decoder.plugin = plugin; ret = plugin->file_decode(&decoder, uri); break; } else if (plugin->stream_decode != NULL) { - decoder.plugin = plugin; ret = plugin->stream_decode(&decoder, &input_stream); break; |