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/mp4_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 '')
-rw-r--r-- | src/inputPlugins/mp4_plugin.c | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/src/inputPlugins/mp4_plugin.c b/src/inputPlugins/mp4_plugin.c index 6a999e4ec..c4a3c2d22 100644 --- a/src/inputPlugins/mp4_plugin.c +++ b/src/inputPlugins/mp4_plugin.c @@ -416,16 +416,12 @@ static const char *mp4_suffixes[] = { "m4a", "mp4", NULL }; static const char *mp4_mimeTypes[] = { "audio/mp4", "audio/m4a", NULL }; struct decoder_plugin mp4Plugin = { - "mp4", - NULL, - NULL, - NULL, - mp4_decode, - NULL, - mp4TagDup, - INPUT_PLUGIN_STREAM_FILE | INPUT_PLUGIN_STREAM_URL, - mp4_suffixes, - mp4_mimeTypes + .name = "mp4", + .stream_decode = mp4_decode, + .tag_dup = mp4TagDup, + .stream_types = INPUT_PLUGIN_STREAM_FILE | INPUT_PLUGIN_STREAM_URL, + .suffixes = mp4_suffixes, + .mime_types = mp4_mimeTypes, }; #else |