Fix crash in music_track code

appearently calling ov_clear when ov_fopen wasn't successful crashed the application.
This commit is contained in:
gfgtdf 2020-08-06 14:20:28 +02:00 committed by GitHub
parent 9f854e7ce8
commit 904c997d3b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
}