close the file if vorbis doesn't like it

This commit is contained in:
Bill Currie 2002-09-26 19:37:01 +00:00
parent 2a56b8f15f
commit 5b9d4fb241

View file

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