Ticket #2156: updated.patch

File updated.patch, 945 bytes (added by skamithi, 18 years ago)
  • programs/mythfrontend/main.cpp

     
    564564 
    565565    QString filename = QString(mrl);
    566566    QFile checkFile(filename);
    567     if (!checkFile.exists() && !filename.contains("dvd"))
     567    if (!checkFile.exists() && !filename.contains("dvd://"))
    568568    {
    569569        QString errorText = QObject::tr("Failed to open \n '%1' in %2 \n"
    570570                                        "Check if the video exists")
     
    594594    pginfo->isVideo = true;
    595595    pginfo->pathname = mrl;
    596596   
    597     if (pginfo->pathname.find(".iso", 0, false) != -1)
     597    QFileInfo videoTs(filename + "/VIDEO_TS");
     598    if ((pginfo->pathname.find(".iso", 0, false) != -1) ||
     599        (videoTs.exists() && videoTs.isDir()))   
    598600    {
    599601        pginfo->pathname = QString("dvd:%1").arg(mrl);
    600602    }