From 9efefc1b498c92b9fd056167113dee705dca6dbf Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Sun, 20 Feb 2005 11:21:15 +0000 Subject: [PATCH] The mx* routines expect UTF-8 input. --- src/input/r_matroska.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/input/r_matroska.cpp b/src/input/r_matroska.cpp index ee808709a..aa272a050 100644 --- a/src/input/r_matroska.cpp +++ b/src/input/r_matroska.cpp @@ -825,10 +825,9 @@ kax_reader_c::read_headers() { ktitle = FINDFIRST(l1, KaxTitle); if (ktitle != NULL) { - title = UTFstring_to_cstr(UTFstring(*ktitle)); + title = UTFstring_to_cstrutf8(UTFstring(*ktitle)); if (verbose > 1) mxinfo(PFX "| + title: %s\n", title.c_str()); - title = UTFstring_to_cstrutf8(UTFstring(*ktitle)); } // Let's try to parse the "writing application" string. This usually @@ -1183,8 +1182,7 @@ kax_reader_c::read_headers() { if (ktname != NULL) { track->track_name = UTFstring_to_cstrutf8(UTFstring(*ktname)); if (verbose > 1) - mxinfo(PFX "| + Name: %s\n", - UTFstring_to_cstr(UTFstring(*ktname)).c_str()); + mxinfo(PFX "| + Name: %s\n", track->track_name.c_str()); } track->content_decoder.initialize(*ktentry); @@ -2096,12 +2094,12 @@ kax_reader_c::identify() { attachments[i].size); if (attachments[i].description.length() > 0) mxinfo("description '%s', ", - UTFstring_to_cstr(attachments[i].description).c_str()); + UTFstring_to_cstrutf8(attachments[i].description).c_str()); if (attachments[i].name.length() == 0) mxinfo("no file name given\n"); else mxinfo("file name '%s'\n", - UTFstring_to_cstr(attachments[i].name).c_str()); + UTFstring_to_cstrutf8(attachments[i].name).c_str()); } }