Ticket #4270: mingw.2.patch

File mingw.2.patch, 1.2 KB (added by andrei@…, 16 years ago)

suseconds_t, enable mediamonitor in mythfrontend

  • libs/libmyth/compat.h

     
    240240// suseconds_t
    241241#include <sys/types.h>
    242242
     243#ifdef USING_MINGW
     244    typedef int suseconds_t;
     245#endif
     246
    243247#include "mythconfig.h"
    244248#if defined(CONFIG_DARWIN) && ! defined (_SUSECONDS_T)
    245249        typedef int32_t suseconds_t;   // 10.3 or earlier don't have this
  • programs/mythfrontend/main.cpp

     
    13751375
    13761376    qApp->unlock();
    13771377
    1378 #ifndef _WIN32
    13791378    MediaMonitor *mon = MediaMonitor::GetMediaMonitor();
    13801379    if (mon)
    13811380    {
    13821381        VERBOSE(VB_IMPORTANT, QString("Starting media monitor."));
    13831382        mon->StartMonitoring();
    13841383    }
    1385 #endif
    13861384
    13871385    NetworkControl *networkControl = NULL;
    13881386    if (gContext->GetNumSetting("NetworkControlEnabled", 0))
     
    14241422
    14251423    pmanager->DestroyAllPlugins();
    14261424
    1427 #ifndef _WIN32
    14281425    if (mon)
    14291426    {
    14301427        mon->StopMonitoring();
    14311428        delete mon;
    14321429    }
    1433 #endif
    14341430
    14351431    if (priv_thread_created)
    14361432    {