ov_open_callbacks doesn't set ass_errno obviously. removed it from the
authorJohn Tsiombikas <nuclear@member.fsf.org>
Sat, 29 Sep 2018 03:21:44 +0000 (06:21 +0300)
committerJohn Tsiombikas <nuclear@member.fsf.org>
Sat, 29 Sep 2018 03:21:44 +0000 (06:21 +0300)
error message.

src/audio/ovstream.cc

index 0c347f8..ce9619f 100644 (file)
@@ -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;