Skip to content

Commit

Permalink
properly compute total time for ogg vorbis
Browse files Browse the repository at this point in the history
  • Loading branch information
reduz committed Nov 1, 2015
1 parent 281d6fa commit 61ecb6a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/vorbis/audio_stream_ogg_vorbis.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -289,8 +289,7 @@ Error AudioStreamPlaybackOGGVorbis::set_file(const String& p_file) {
const vorbis_info *vinfo=ov_info(&vf,-1);
stream_channels=vinfo->channels;
stream_srate=vinfo->rate;
ogg_int64_t len = ov_time_total(&vf,-1);
length=len/1000.0;
length = ov_time_total(&vf,-1);
ov_clear(&vf);
memdelete(f);
f=NULL;
Expand Down

0 comments on commit 61ecb6a

Please sign in to comment.