mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-17 22:50:51 +00:00
close the file if vorbis doesn't like it
This commit is contained in:
parent
2a56b8f15f
commit
5b9d4fb241
1 changed files with 1 additions and 0 deletions
|
@ -101,6 +101,7 @@ SND_LoadOgg (QFile *file, sfx_t *sfx, cache_allocator_t allocator)
|
|||
|
||||
if (ov_open_callbacks (file, &vf, 0, 0, callbacks) < 0) {
|
||||
Sys_Printf ("Input does not appear to be an Ogg bitstream.\n");
|
||||
Qclose (file);
|
||||
return 0;
|
||||
}
|
||||
vi = ov_info (&vf, -1);
|
||||
|
|
Loading…
Reference in a new issue