Ticket #2406: mythdvd.diff

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

Diffs to main.cpp and mythdvd.pro

  • 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"
     
    124128        QString filename = QString("dvd:/%1" )
    125129                .arg(gContext->GetSetting("DVDDeviceLocation"));
    126130        command_string = "Internal";
     131#ifdef Q_WS_MACX
     132        MacOSXDVDPlayer::PlayDVD(filename);
     133#else
    127134        gContext->GetMainWindow()->HandleMedia(command_string, filename);
     135#endif // Q_WS_MACX
    128136        gContext->removeCurrentLocation();
    129137        return;
    130138    }
  • 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}