# HG changeset patch # User gpoirier # Date 1158580061 0 # Node ID f16afec4c9c08a30ecf5e25b5a235ff472fc211c # Parent b3fd29d6b7eba568cf75d48b1f0e11b2f98e6adb Fix missleading msg printed when subcp_open is given NULL as parameter (like as demux_ogg and demux_mkv do) Patch by: Zuxy Meng %zuxy.meng A gmail P com% Original Thread: Message-ID: Date: Sat, 16 Sep 2006 19:00:57 +0800 To: mplayer-dev-eng@mplayerhq.hu Subject: [MPlayer-dev-eng] [PATCH] Remove erroneaus warning message in subreader.c diff -r b3fd29d6b7eb -r f16afec4c9c0 subreader.c --- a/subreader.c Mon Sep 18 00:14:41 2006 +0000 +++ b/subreader.c Mon Sep 18 11:47:41 2006 +0000 @@ -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