From b26d8828d403ab495ccf066ec205298af74b9be5 Mon Sep 17 00:00:00 2001 From: Uoti Urpala Date: Sat, 8 May 2010 22:40:01 +0300 Subject: subreader: remove pointless message The code printed a pointless "dvdsublang..." message at MSGL_INFO level. Remove that. Add instead a MSGL_DBG2 message showing tested files and their priorities. --- subreader.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/subreader.c b/subreader.c index 7465cb0e35..e4ba939742 100644 --- a/subreader.c +++ b/subreader.c @@ -1926,7 +1926,6 @@ char** sub_filenames(const char* path, char *fname) if (!prio && tmp_sub_id) { sprintf(tmpresult, "%s %s", f_fname_trim, tmp_sub_id); - mp_msg(MSGT_SUBREADER,MSGL_INFO,"dvdsublang...%s\n", tmpresult); if (strcmp(tmp_fname_trim, tmpresult) == 0 && sub_match_fuzziness >= 1) { // matches the movie name + lang extension prio = 5; @@ -1958,6 +1957,8 @@ char** sub_filenames(const char* path, char *fname) } } + mp_msg(MSGT_SUBREADER, MSGL_DBG2, "Potential sub file: " + "\"%s\" Priority: %d\n", de->d_name, prio); if (prio) { prio += prio; #ifdef CONFIG_ICONV -- cgit v1.2.3