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: <a18e06b40609160400l74263121p5f41eaf3549caf5@mail.gmail.com>
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
This commit is contained in:
gpoirier 2006-09-18 11:47:41 +00:00
parent e5abdb31f6
commit 5fc0b3c9d2
1 changed files with 2 additions and 1 deletions

View File

@ -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