[MPlayer-dev-eng] [PATCH] Remove erroneaus warning message in subreader.c

Zuxy Meng zuxy.meng at gmail.com
Sat Sep 16 13:00:57 CEST 2006


Hi,

Since demux_ogg and demux_mkv now call subcp_open(NULL) in
subreader.c, with enca enabled, mplayer will issue warning: "SUB: enca
faild, stream must be seekable" for two times when playing a mp3 file.
This shouldn't be the case since we set stream=NULL on purpose. The
attached patch corrects this.

-- 
Zuxy
Beauty is truth,
While truth is beauty.
PGP KeyID: E8555ED6
-------------- next part --------------
Index: subreader.c
===================================================================
--- subreader.c	???????? 19838??
+++ subreader.c	????????????
@@ -1091,7 +1091,8 @@
 		    free_cp_tmp = 1;
 		  } else {
 		    cp_tmp = enca_fallback;
-		    mp_msg(MSGT_SUBREADER,MSGL_WARN,"SUB: enca faild, stream must be seakable.\n"); 
+		    if (st)
+		      mp_msg(MSGT_SUBREADER,MSGL_WARN,"SUB: enca failed, stream must be seakable.\n"); 
 		  }
 		}
 #endif


More information about the MPlayer-dev-eng mailing list