From: John Tsiombikas Date: Sat, 29 Sep 2018 03:21:44 +0000 (+0300) Subject: ov_open_callbacks doesn't set ass_errno obviously. removed it from the X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=laserbrain_demo;a=commitdiff_plain;h=7520305c1ff271845cfbb2d824cf6d4a664442dc ov_open_callbacks doesn't set ass_errno obviously. removed it from the error message. --- diff --git a/src/audio/ovstream.cc b/src/audio/ovstream.cc index 0c347f8..ce9619f 100644 --- a/src/audio/ovstream.cc +++ b/src/audio/ovstream.cc @@ -46,7 +46,7 @@ bool OggVorbisStream::open(const char *fname) ov_callbacks iofuncs = { ass_fread, io_fseek, io_close, ass_ftell }; if(ov_open_callbacks(fp, &vf, 0, 0, iofuncs) != 0) { - error_log("failed to open ogg/vorbis stream: %s: %s\n", fname, strerror(ass_errno)); + error_log("failed to open ogg/vorbis stream: %s\n", fname); ass_fclose(fp); pthread_mutex_unlock(&vflock); return false;