Ticket #2406: mythdvd.2.diff

File mythdvd.2.diff, 1.2 KB (added by awk@…, 18 years ago)

Launch Mac OS X playback if setting is dvdplaybackframework rather than internal

  • main.cpp

     
    2727#include <mythtv/lcddevice.h>
    2828#include <mythtv/libmythui/myththemedmenu.h>
    2929
     30#ifdef Q_WS_MACX
     31#include "MacOSXDVDPlayer.h"
     32#endif // Q_WS_MACX
     33
    3034#include "settings.h"
    3135#include "dvdripbox.h"
    3236#include "dbcheck.h"
     
    128132        gContext->removeCurrentLocation();
    129133        return;
    130134    }
     135#ifdef Q_WS_MACX
     136    else if ( (command_string.find("dvdplaybackframework", 0, false) > -1))
     137    {
     138        QString filename = QString("dvd:/%1" ).arg(gContext->GetSetting("DVDDeviceLocation"));
     139        MacOSXDVDPlayer::PlayDVD(filename);
     140        gContext->removeCurrentLocation();
     141        return;
     142    }
     143#endif // Q_WS_MACX   
    131144    else
    132145    {
    133146        if(command_string.contains("%d"))
  • mythdvd.pro

     
    2323
    2424macx {
    2525    QMAKE_LFLAGS += -flat_namespace -undefined suppress
     26    SOURCES += MacOSXDVDPlayer.cpp
     27    HEADERS += MacOSXDVDPlayer.h
     28    LIBS += -framework DVDPlayback -framework DiskArbitration
    2629}