diff options
author | Max Kellermann <max@duempel.org> | 2008-09-29 15:55:17 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-09-29 15:55:17 +0200 |
commit | de7cda1d6e8df9edc436196d0a2db25757abd236 (patch) | |
tree | aba9009bb5ed55d3ada28ec64292211210cb6cd3 /src/inputPlugins/mp3_plugin.c | |
parent | 21d3d300fdfa5d5e65bf22ec59fd37550d3c2dac (diff) | |
download | mpd-de7cda1d6e8df9edc436196d0a2db25757abd236.tar.gz mpd-de7cda1d6e8df9edc436196d0a2db25757abd236.tar.xz mpd-de7cda1d6e8df9edc436196d0a2db25757abd236.zip |
use C99 struct initializers
The old struct initializers are error prone and don't allow moving
elements around. Since we are going to overhaul some of the APIs
soon, it's easier to have all implementations use C99 initializers.
Diffstat (limited to 'src/inputPlugins/mp3_plugin.c')
-rw-r--r-- | src/inputPlugins/mp3_plugin.c | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/src/inputPlugins/mp3_plugin.c b/src/inputPlugins/mp3_plugin.c index cbf76a3cd..60e09a1bb 100644 --- a/src/inputPlugins/mp3_plugin.c +++ b/src/inputPlugins/mp3_plugin.c @@ -1122,16 +1122,13 @@ static const char *mp3_suffixes[] = { "mp3", "mp2", NULL }; static const char *mp3_mimeTypes[] = { "audio/mpeg", NULL }; struct decoder_plugin mp3Plugin = { - "mp3", - mp3_plugin_init, - NULL, - NULL, - mp3_decode, - NULL, - mp3_tagDup, - INPUT_PLUGIN_STREAM_FILE | INPUT_PLUGIN_STREAM_URL, - mp3_suffixes, - mp3_mimeTypes + .name = "mp3", + .init = mp3_plugin_init, + .stream_decode = mp3_decode, + .tag_dup = mp3_tagDup, + .stream_types = INPUT_PLUGIN_STREAM_FILE | INPUT_PLUGIN_STREAM_URL, + .suffixes = mp3_suffixes, + .mime_types = mp3_mimeTypes }; #else |