Ticket #9797: latin1.patch

File latin1.patch, 672 bytes (added by p.kosseff | at \ gmail.com, 9 years ago)

fixes the BD player when the path contains non latin chars

  • mythtv/libs/libmythtv/BDRingBuffer.cpp

    diff --git a/mythtv/libs/libmythtv/BDRingBuffer.cpp b/mythtv/libs/libmythtv/BDRingBuffer.cpp
    index 64a9ef1..1e9705b 100644
    a b bool BDRingBufferPriv::OpenFile(const QString &filename) 
    6363    QByteArray keyarray = keyfile.toAscii();
    6464    const char *keyfilepath = keyarray.data();
    6565
    66     bdnav = bd_open(filename.toLatin1().data(), keyfilepath);
     66    bdnav = bd_open(filename.toLocal8Bit().data(), keyfilepath);
    6767
    6868    // The following settings affect HDMV navigation (default audio track selection,
    6969    // parental controls, menu language, etc.  They are not yet used.