Mercurial > mplayer.hg
diff gui/app/cfg-old.c @ 35872:93ab56bda68a
Utilize new cfg_old_filename_from_utf8() in playlist code.
Use it instead of g_filename_from_utf8(), because the content of the
history file will change from UTF-8 encoded filenames to filenames in
their original byte sequence.
author | ib |
---|---|
date | Fri, 15 Mar 2013 03:46:53 +0000 |
parents | 8f49b68dd955 |
children | bd3e9d8df038 |
line wrap: on
line diff
--- a/gui/app/cfg-old.c Fri Mar 15 03:42:57 2013 +0000 +++ b/gui/app/cfg-old.c Fri Mar 15 03:46:53 2013 +0000 @@ -31,6 +31,7 @@ */ static const gchar *cfg_old_filename_from_utf8(const gchar *fname) { +#ifdef CFG_OLD_PLAYLIST static gchar *name; if (g_utf8_validate(fname, -1, NULL)) { @@ -39,6 +40,8 @@ return name; } - +#endif return fname; } + +#undef CFG_OLD_PLAYLIST