[mythtv-commits] Ticket #6869: Subtitles not working for avi with multiple dots in filename
MythTV
mythtv at cvs.mythtv.org
Sat Jan 9 01:07:42 UTC 2010
#6869: Subtitles not working for avi with multiple dots in filename
----------------------------------------------+-----------------------------
Reporter: Paul Kendall <paul@…> | Owner: danielk
Type: defect | Status: closed
Priority: trivial | Milestone: unknown
Component: MythTV - General | Version: head
Severity: low | Resolution: fixed
Mlocked: 0 |
----------------------------------------------+-----------------------------
Comment(by leipzig@…):
Hi there,
I have had some trouble with the subtitling. The patch solved the multidot
filenames issue, but it seems that for files with "[" "]" characters there
is one more problem.
The substitution in the filter pattern works fine in order to find files
on QDir, but now baseName contains the /replaced/ version too
(http://qt.nokia.com/doc/4.6/qstring.html#replace), so this code
{{{
257 QFileInfo fi(dirName + "/" + baseName + (*cit).right(4));
}}}
looks for a file with "?" characters on it, which does not exist.
I have replaced that line with
{{{
257 QFileInfo fi(dirName + "/" + *cit);
}}}
and now my compilation seems to work fine.
What do you think?
--Héctor
--
Ticket URL: <http://svn.mythtv.org/trac/ticket/6869#comment:7>
MythTV <http://www.mythtv.org/>
MythTV
More information about the mythtv-commits
mailing list