Ticket #3691: mythtv_cmdline_dvdplay.diff

File mythtv_cmdline_dvdplay.diff, 659 bytes (added by Pekka Jääskeläinen <pekka.jaaskelainen@…>, 13 years ago)

fix against trunk

  • programs/mythtv/main.cpp

    * Allows playing DVDs from command line with 'mythtv' again
      using the dvd://${path_to_dvd_dir} syntax.
    old new  
    284284        pginfo->isVideo = true;
    285285
    286286        // RingBuffer doesn't like relative pathnames
    287         if (filename.left(1) != "/")
     287        if (filename.left(1) != "/" && !filename.startsWith("dvd://"))
    288288            pginfo->pathname.prepend(QDir::currentDirPath() + '/');
    289289    }
    290290