use File::size() method were it makes sense; one small change to simon.cpp based on comment on bug #595813
svn-id: r5210
This commit is contained in:
parent
46a3039f70
commit
31c773923e
3 changed files with 9 additions and 29 deletions
|
@ -1300,8 +1300,7 @@ int Sound::getCachedTrack(int track) {
|
|||
mad_frame_finish(&frame);
|
||||
mad_stream_finish(&stream);
|
||||
// Get file size
|
||||
file->seek(0, SEEK_END);
|
||||
_mp3_size[current_index] = file->pos();
|
||||
_mp3_size[current_index] = file->size();
|
||||
_mp3_tracks[current_index] = file;
|
||||
|
||||
return current_index;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue