mirror of
https://github.com/mpv-player/mpv
synced 2024-11-18 21:16:10 +01:00
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.
This commit is contained in:
parent
33efcaf157
commit
b26d8828d4
@ -1926,7 +1926,6 @@ char** sub_filenames(const char* path, char *fname)
|
|||||||
if (!prio && tmp_sub_id)
|
if (!prio && tmp_sub_id)
|
||||||
{
|
{
|
||||||
sprintf(tmpresult, "%s %s", f_fname_trim, 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) {
|
if (strcmp(tmp_fname_trim, tmpresult) == 0 && sub_match_fuzziness >= 1) {
|
||||||
// matches the movie name + lang extension
|
// matches the movie name + lang extension
|
||||||
prio = 5;
|
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) {
|
if (prio) {
|
||||||
prio += prio;
|
prio += prio;
|
||||||
#ifdef CONFIG_ICONV
|
#ifdef CONFIG_ICONV
|
||||||
|
Loading…
Reference in New Issue
Block a user