Fix crash in music_track code
appearently calling ov_clear when ov_fopen wasn't successful crashed the application.
This commit is contained in:
parent
9f854e7ce8
commit
904c997d3b
1 changed files with 0 additions and 1 deletions
|
@ -85,7 +85,6 @@ void music_track::resolve()
|
|||
OggVorbis_File vf;
|
||||
if(ov_fopen(file_path_.c_str(), &vf) < 0) {
|
||||
LOG_AUDIO << "Error opening file '" << file_path_ << "' for track identification\n";
|
||||
ov_clear(&vf);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue