[mythtv-commits] Ticket #5908: mythvideo can`t handle `'s in video files when using external player

MythTV mythtv at cvs.mythtv.org
Sat Nov 15 11:25:22 UTC 2008


#5908: mythvideo can`t handle `'s in video files when using external player
-------------------------------------------------+--------------------------
 Reporter:  michael bishop <clever at nbnet.nb.ca>  |       Owner:  ijr    
     Type:  patch                                |      Status:  new    
 Priority:  minor                                |   Milestone:  unknown
Component:  mythtv                               |     Version:  head   
 Severity:  medium                               |     Mlocked:  0      
-------------------------------------------------+--------------------------
 i noticed this bug with i had trouble playing some files where ` was used
 instead of ' for words like didn`t[[BR]]
 patching it was pretty simple[[BR]]

 {{{
 Index: mythplugins/mythvideo/mythvideo/metadata.cpp
 ===================================================================
 --- mythplugins/mythvideo/mythvideo/metadata.cpp        (revision 18906)
 +++ mythplugins/mythvideo/mythvideo/metadata.cpp        (working copy)
 @@ -834,7 +834,7 @@
      QString handler = getPlayer(item);

      QString esc_fname =
 -            QString(item->Filename()).replace(QRegExp("\""), "\\\"");
 +            QString(item->Filename()).replace(QRegExp("\""),
 "\\\"").replace(QRegExp("`"), "\\`");
      QString arg = QString("\"%1\"").arg(esc_fname);

      QString command = "";
 }}}

-- 
Ticket URL: <http://svn.mythtv.org/trac/ticket/5908>
MythTV <http://www.mythtv.org/>
MythTV


More information about the mythtv-commits mailing list