Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
music_flac.c: remove c99'ism
  • Loading branch information
sezero committed Nov 17, 2019
1 parent b8a6710 commit 78771f1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion music_flac.c
Expand Up @@ -415,10 +415,12 @@ static void flac_metadata_music_cb(
music->stream = SDL_NewAudioStream(AUDIO_S16SYS, channels, music->sample_rate,
music_spec.format, music_spec.channels, music_spec.freq);
} else if (metadata->type == FLAC__METADATA_TYPE_VORBIS_COMMENT) {
int i;

vc = &metadata->data.vorbis_comment;
rate = music->sample_rate;

for (int i = 0; i < vc->num_comments; ++i) {
for (i = 0; i < vc->num_comments; ++i) {
param = SDL_strdup(vc->comments[i].entry);
argument = param;
value = SDL_strchr(param, '=');
Expand Down

0 comments on commit 78771f1

Please sign in to comment.