From 5fc0b3c9d207d55c0a23905a6267c959a4c6090d Mon Sep 17 00:00:00 2001 From: gpoirier Date: Mon, 18 Sep 2006 11:47:41 +0000 Subject: [PATCH] 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 git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19883 b3059339-0415-0410-9bf9-f77b7e298cf2 --- subreader.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/subreader.c b/subreader.c index 1d9da98cc1..a722d5e479 100644 --- a/subreader.c +++ b/subreader.c @@ -1091,7 +1091,8 @@ void subcp_open (stream_t *st) 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