decoder/flac: remove "duration" parameter from flac_decoder_initialize()

It's always 0.
This commit is contained in:
Max Kellermann
2016-07-08 22:38:40 +02:00
parent e42eed4d4c
commit 79d4f8674c
2 changed files with 3 additions and 8 deletions

View File

@@ -77,9 +77,7 @@ flac_got_stream_info(struct flac_data *data,
}
data->frame_size = data->audio_format.GetFrameSize();
if (data->total_frames == 0)
data->total_frames = stream_info->total_samples;
data->total_frames = stream_info->total_samples;
data->initialized = true;
}