[mythtv-commits] Ticket #6292: Mythmusic cannot play mp3 songs in greek filenames
MythTV
mythtv at cvs.mythtv.org
Wed Feb 25 12:28:57 UTC 2009
#6292: Mythmusic cannot play mp3 songs in greek filenames
--------------------------------+-------------------------------------------
Reporter: yianniv | Owner: stuartm
Type: defect | Status: new
Priority: minor | Milestone: 0.22
Component: Plugin - MythMusic | Version: head
Severity: medium | Resolution:
Mlocked: 0 |
--------------------------------+-------------------------------------------
Comment(by yianniv):
I started debugging the av_open_input_file function. My attempt is crude,
but I came up with this:
The av_open_input_file function called in avfdecoder.cpp file is declared
in mythtv/libs/libavformat/utils.c (please correct me if my assumption is
wrong!)
The variable 'filename' in avfdecoder.cpp is in Greek
("/home/mythtv/Laika/01-Κάνε κάτι να χάσω το τραίνο.mp3"). So far so good.
But if I printf the variable in utils.c, "/home/mythtv/Laika/01-???? ????
?? ???? ?? ??????.mp3" comes out.
The exact code in utils.c that returns the error is:
if (!fmt || !(fmt->flags & AVFMT_NOFILE)) {
/* if no file needed do not try to open one */
if ((err=url_fopen(&pb, filename, URL_RDONLY)) < 0) {
goto fail;
}
The followind is the output from the mythfrontend shell. It includes some
debugging messages I added, showing variable names + values. The lines
starting with dates are the normal VERBOSE messages in avfdecoder.cpp.
I will keep debugging.....
----------------starting av_open_input_file function..
&pd "-1769285760" -filename: "/home/mythtv/Laika/01-???? ???? ?? ???? ??
??????.mp3" --URL_RDONLY: "0"
/home/mythtv/Laika/01-???? ???? ?? ???? ?? ??????.mp32009-02-25
14:04:44.087 0x51d66a8
2009-02-25 14:04:44.087 Filename: "/home/mythtv/Laika/01-Κάνε κάτι να χάσω
το τραίνο.mp3"
2009-02-25 14:04:44.087 0x0
2009-02-25 14:04:44.087 0x51d6668
2009-02-25 14:04:44.087 Could open file with the AV decoder. Error: -2
--
Ticket URL: <http://svn.mythtv.org/trac/ticket/6292#comment:7>
MythTV <http://www.mythtv.org/>
MythTV
More information about the mythtv-commits
mailing list