3 changes: 2 additions & 1 deletion mythtv/libs/libmythtv/cardutil.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#define CARDUTIL_H

// C++ headers
#include <chrono>
#include <cstdint>
#include <vector>

Expand Down Expand Up @@ -392,7 +393,7 @@ class MTV_PUBLIC CardUtil
static QString ProbeDVBType(const QString &device);
static QString ProbeDVBFrontendName(const QString &device);
static bool HasDVBCRCBug(const QString &device);
static uint GetMinSignalMonitoringDelay(const QString &device);
static std::chrono::milliseconds GetMinSignalMonitoringDelay(const QString &device);
static DTVTunerType ConvertToTunerType(DTVModulationSystem delsys);
static DTVTunerType GetTunerType(uint inputid);
static DTVTunerType ProbeTunerType(int fd_frontend);
Expand Down
4 changes: 2 additions & 2 deletions mythtv/libs/libmythtv/channelscan/channelscan_sm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1970,7 +1970,7 @@ void ChannelScanSM::StartScanner(void)
while (m_scannerThread)
{
m_threadExit = true;
if (m_scannerThread->wait(1000))
if (m_scannerThread->wait(1s))
{
delete m_scannerThread;
m_scannerThread = nullptr;
Expand Down Expand Up @@ -2264,7 +2264,7 @@ void ChannelScanSM::StopScanner(void)
while (m_scannerThread)
{
m_threadExit = true;
if (m_scannerThread->wait(1000))
if (m_scannerThread->wait(1s))
{
delete m_scannerThread;
m_scannerThread = nullptr;
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/channelscan/externrecscanner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ void ExternRecChannelScanner::Stop(void)
{
m_stopNow = true;
m_lock.unlock();
m_thread->wait(5);
m_thread->wait(5ms);
m_lock.lock();
}

Expand Down
4 changes: 2 additions & 2 deletions mythtv/libs/libmythtv/channelscan/iptvchannelfetcher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ void IPTVChannelFetcher::Stop(void)
{
m_stopNow = true;
m_lock.unlock();
m_thread->wait(5);
m_thread->wait(5ms);
m_lock.lock();
}

Expand All @@ -73,7 +73,7 @@ void IPTVChannelFetcher::Stop(void)
fbox_chan_map_t IPTVChannelFetcher::GetChannels(void)
{
while (!m_thread->isFinished())
m_thread->wait(500);
m_thread->wait(500ms);

LOG(VB_CHANNEL, LOG_INFO, LOC + QString("Found %1 channels")
.arg(m_channels.size()));
Expand Down
4 changes: 2 additions & 2 deletions mythtv/libs/libmythtv/channelscan/vboxchannelfetcher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ void VBoxChannelFetcher::Stop(void)
{
m_stopNow = true;
m_lock.unlock();
m_thread->wait(5);
m_thread->wait(5ms);
m_lock.lock();
}

Expand All @@ -87,7 +87,7 @@ void VBoxChannelFetcher::Stop(void)
vbox_chan_map_t VBoxChannelFetcher::GetChannels(void)
{
while (!m_thread->isFinished())
m_thread->wait(500);
m_thread->wait(500ms);

LOG(VB_CHANNEL, LOG_INFO, LOC + QString("Found %1 channels")
.arg(m_channels->size()));
Expand Down
6 changes: 3 additions & 3 deletions mythtv/libs/libmythtv/io/mythfilebuffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ bool MythFileBuffer::OpenFile(const QString &Filename, uint _Retry)
}

lasterror = 1;
usleep(10 * 1000);
usleep(10ms);
}
else
{
Expand All @@ -240,7 +240,7 @@ bool MythFileBuffer::OpenFile(const QString &Filename, uint _Retry)

if (m_oldfile)
break; // if it's an old file it won't grow..
usleep(10 * 1000);
usleep(10ms);
}
else
{
Expand Down Expand Up @@ -516,7 +516,7 @@ int MythFileBuffer::SafeRead(int /*fd*/, void *Buffer, uint Size)
if (m_stopReads)
break;
if (tot < Size)
usleep(60000);
usleep(60ms);
}
return static_cast<int>(tot);
}
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/io/mythmediabuffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -655,7 +655,7 @@ void MythMediaBuffer::KillReadAheadThread(void)
StopReads();
m_generalWait.wakeAll();
m_rwLock.unlock();
MThread::wait(5000);
MThread::wait(5s);
}
}

Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/mythplayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1029,7 +1029,7 @@ void MythPlayer::DecoderEnd(void)

m_killDecoder = true;
int tries = 0;
while (m_decoderThread && !m_decoderThread->wait(100) && (tries++ < 50))
while (m_decoderThread && !m_decoderThread->wait(100ms) && (tries++ < 50))
LOG(VB_PLAYBACK, LOG_INFO, LOC +
"Waited 100ms for decoder loop to stop");

Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/previewgenerator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,7 @@ bool PreviewGenerator::SaveOutFile(const QByteArray &data, const QDateTime &dt)
if (written < 0)
{
failure_cnt++;
usleep(50000);
usleep(50ms);
continue;
}

Expand Down
16 changes: 8 additions & 8 deletions mythtv/libs/libmythtv/recorders/DeviceReadBuffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ void DeviceReadBuffer::run(void)

if (!IsOpen())
{
usleep(5000);
usleep(5ms);
continue;
}

Expand Down Expand Up @@ -368,7 +368,7 @@ void DeviceReadBuffer::run(void)

// Slow down reading if not under load
if (errcnt == 0 && total < throttle)
usleep(1000);
usleep(1ms);
}

ClosePipes();
Expand All @@ -393,7 +393,7 @@ bool DeviceReadBuffer::HandlePausing(void)
if (m_readerCB)
m_readerCB->ReaderPaused(m_streamFd);

usleep(5000);
usleep(5ms);
return false;
}
if (IsPaused())
Expand Down Expand Up @@ -485,7 +485,7 @@ bool DeviceReadBuffer::Poll(void) const
if ((EAGAIN == errno) || (EINTR == errno))
continue; // errors that tell you to try again

usleep(2500 /*2.5 ms*/);
usleep(2.5ms);
}
else // ret == 0
{
Expand Down Expand Up @@ -562,7 +562,7 @@ bool DeviceReadBuffer::CheckForErrors(
return false;
if (EAGAIN == errno)
{
usleep(2500);
usleep(2.5ms);
return false;
}
if (EOVERFLOW == errno)
Expand All @@ -582,7 +582,7 @@ bool DeviceReadBuffer::CheckForErrors(
return false;
}

usleep(500);
usleep(500ms);
return false;
}
if (len == 0)
Expand All @@ -598,7 +598,7 @@ bool DeviceReadBuffer::CheckForErrors(

return false;
}
usleep(500);
usleep(500ms);
return false;
}
return true;
Expand Down Expand Up @@ -664,7 +664,7 @@ uint DeviceReadBuffer::WaitForUnused(uint needed) const
unused = GetUnused();
if (IsPauseRequested() || !IsOpen() || !m_doRun)
return 0;
usleep(5000);
usleep(5ms);
}
if (IsPauseRequested() || !IsOpen() || !m_doRun)
return 0;
Expand Down
4 changes: 2 additions & 2 deletions mythtv/libs/libmythtv/recorders/cetonstreamhandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ void CetonStreamHandler::ClearProgramNumber(void)
{
if (GetVar("mux", "ProgramNumber") == "0")
return;
usleep(20000);
usleep(20ms);
};

LOG(VB_GENERAL, LOG_ERR, LOC + "Program number failed to clear");
Expand All @@ -456,7 +456,7 @@ uint CetonStreamHandler::GetProgramNumber(void) const
if (prognum != 0)
return prognum;

usleep(100000);
usleep(100ms);
};

LOG(VB_GENERAL, LOG_ERR, LOC +
Expand Down
4 changes: 2 additions & 2 deletions mythtv/libs/libmythtv/recorders/dvbchannel.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class DVBChannel : public DTVChannel
bool IsMaster(void) const override; // DTVChannel
/// Returns true iff we have a faulty DVB driver that munges PMT
bool HasCRCBug(void) const { return m_hasCrcBug; }
uint GetMinSignalMonitorDelay(void) const { return m_sigMonDelay; }
std::chrono::milliseconds GetMinSignalMonitorDelay(void) const { return m_sigMonDelay; }
/// Returns rotor object if it exists, nullptr otherwise.
const DiSEqCDevRotor *GetRotor(void) const;

Expand Down Expand Up @@ -162,7 +162,7 @@ class DVBChannel : public DTVChannel
uint m_lastLnbDevId {(uint)~0x0};

uint m_tuningDelay {0}; // Extra delay to add for broken drivers
uint m_sigMonDelay {25}; // Minimum delay between FE_LOCK checks
std::chrono::milliseconds m_sigMonDelay {25ms}; // Minimum delay between FE_LOCK checks
bool m_firstTune {true}; // Used to force hardware reset

// Other State
Expand Down
4 changes: 2 additions & 2 deletions mythtv/libs/libmythtv/recorders/dvbsignalmonitor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,8 @@ DVBSignalMonitor::DVBSignalMonitor(int db_cardnum, DVBChannel* _channel,
QString("initial flags %1").arg(sm_flags_to_string(m_flags)));

m_minimumUpdateRate = _channel->GetMinSignalMonitorDelay();
if (m_minimumUpdateRate > 30)
usleep(m_minimumUpdateRate * 1000);
if (m_minimumUpdateRate > 30ms)
usleep(m_minimumUpdateRate);

m_streamHandler = DVBStreamHandler::Get(_channel->GetCardNum(), m_inputid);
}
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/recorders/signalmonitor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ void SignalMonitor::run(void)
}

locker.relock();
m_startStopWait.wait(locker.mutex(), m_updateRate);
m_startStopWait.wait(locker.mutex(), m_updateRate.count());
}

// We need to send a last informational message because a
Expand Down
10 changes: 5 additions & 5 deletions mythtv/libs/libmythtv/recorders/signalmonitor.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class SignalMonitor : protected MThread
/// regularly to the frontend.
bool GetNotifyFrontend() const { return m_notifyFrontend; }
/// \brief Returns milliseconds between signal monitoring events.
int GetUpdateRate() const { return m_updateRate; }
std::chrono::milliseconds GetUpdateRate() const { return m_updateRate; }
virtual QStringList GetStatusList(void) const;
int GetSignalStrength(void) { return m_signalStrength.GetNormalizedValue(0,100); }

Expand Down Expand Up @@ -107,8 +107,8 @@ class SignalMonitor : protected MThread
* Defaults to 25 milliseconds.
* \param msec Milliseconds between signal monitoring events.
*/
void SetUpdateRate(int msec)
{ m_updateRate = std::max(msec, (int)m_minimumUpdateRate); }
void SetUpdateRate(std::chrono::milliseconds msec)
{ m_updateRate = std::max(msec, m_minimumUpdateRate); }

// // // // // // // // // // // // // // // // // // // // // // // //
// Listeners // // // // // // // // // // // // // // // // // // //
Expand Down Expand Up @@ -204,8 +204,8 @@ class SignalMonitor : protected MThread
int m_inputid;
volatile uint64_t m_flags;
bool m_releaseStream;
int m_updateRate {25};
uint m_minimumUpdateRate {5};
std::chrono::milliseconds m_updateRate {25ms};
std::chrono::milliseconds m_minimumUpdateRate {5ms};
bool m_updateDone {false};
bool m_notifyFrontend {true};
bool m_tablemon {false};
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/recorders/v4lrecorder.h
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ class VBIThread : public MThread
while (isRunning())
{
m_parent->StopRecording();
wait(1000);
wait(1s);
}
}

Expand Down
3 changes: 0 additions & 3 deletions mythtv/libs/libmythtv/tv_rec.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,6 @@
#define LOC QString("TVRec[%1]: ").arg(m_inputId)
#define LOC2 QString("TVRec[%1]: ").arg(inputid) // for static functions

/// How many milliseconds the signal monitor should wait between checks
const uint TVRec::kSignalMonitoringRate = 50; /* msec */

QReadWriteLock TVRec::s_inputsLock;
QMap<uint,TVRec*> TVRec::s_inputs;

Expand Down
3 changes: 2 additions & 1 deletion mythtv/libs/libmythtv/tv_rec.h
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,8 @@ class MTV_PUBLIC TVRec : public SignalMonitorListener, public QRunnable
static QMap<uint,TVRec*> s_inputs;

public:
static const uint kSignalMonitoringRate;
/// How many milliseconds the signal monitor should wait between checks
static constexpr std::chrono::milliseconds kSignalMonitoringRate { 50ms };

// General State flags
static const uint kFlagFrontendReady = 0x00000001;
Expand Down
2 changes: 2 additions & 0 deletions mythtv/libs/libmythui/mythmainwindowprivate.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
#include "mythmainwindow.h"
#include "mythgesture.h"

using namespace std::chrono_literals;

class MythScreenStack;
class MythMediaDevice;

Expand Down
7 changes: 4 additions & 3 deletions mythtv/libs/libmythui/mythuianimation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,11 +99,12 @@ void MythUIAnimation::IncrementCurrentTime(void)
if (!m_active)
return;

int64_t current = QDateTime::currentMSecsSinceEpoch();
int interval = std::min(static_cast<int>(current - m_lastUpdate), 50);
std::chrono::milliseconds current = MythDate::currentMSecsSinceEpochAsDuration();
std::chrono::milliseconds interval = std::min(current - m_lastUpdate, 50ms);
m_lastUpdate = current;

setCurrentTime(currentTime() + ((direction() == Forward) ? interval : -interval));
int offset = (direction() == Forward) ? interval.count() : -interval.count();
setCurrentTime(currentTime() + offset);

if (endValue() == currentValue())
{
Expand Down
4 changes: 3 additions & 1 deletion mythtv/libs/libmythui/mythuianimation.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#ifndef MYTHUIANIMATION_H
#define MYTHUIANIMATION_H

#include "mythchrono.h"
#include "mythdate.h"
#include "xmlparsebase.h"
#include <QDateTime>
#include <QVariantAnimation>
Expand Down Expand Up @@ -85,7 +87,7 @@ class MythUIAnimation : public QVariantAnimation, XMLParseBase
bool m_active {false};
bool m_looped {false};
bool m_reversible {false};
int64_t m_lastUpdate { QDateTime::currentMSecsSinceEpoch() };
std::chrono::milliseconds m_lastUpdate { MythDate::currentMSecsSinceEpochAsDuration() };
};

#endif // MYTHUIANIMATION_H
2 changes: 1 addition & 1 deletion mythtv/libs/libmythupnp/taskqueue.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ void TaskQueue::run( )
}
// Make sure to throttle our processing.

msleep( 100 );
msleep( 100ms );
}

RunEpilog();
Expand Down
2 changes: 1 addition & 1 deletion mythtv/programs/mythbackend/mainserver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
/** Milliseconds to wait for an existing thread from
* process request thread pool.
*/
#define PRT_TIMEOUT 10
static constexpr std::chrono::milliseconds PRT_TIMEOUT { 10ms };
/** Number of threads in process request thread pool at startup. */
#define PRT_STARTUP_THREAD_COUNT 5

Expand Down
2 changes: 1 addition & 1 deletion mythtv/programs/mythbackend/scheduler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2024,7 +2024,7 @@ void Scheduler::run(void)
OldRecordedFixups();

// wait for slaves to connect
sleep(3);
sleep(3s);

QMutexLocker lockit(&m_schedLock);

Expand Down
25 changes: 14 additions & 11 deletions mythtv/programs/mythfrontend/galleryslide.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

#include "imagemetadata.h"

using std::chrono::duration_cast;

#define LOC QString("Slide: ")
#define SBLOC QString("SlideBuffer: ")
Expand Down Expand Up @@ -42,13 +43,14 @@ void AbstractAnimation::Start(bool forwards, float speed)
\param curve Easing curve governing animation
\param centre Zoom centre
*/
void Animation::Set(const QVariant& from, const QVariant& to, int duration,
void Animation::Set(const QVariant& from, const QVariant& to,
std::chrono::milliseconds duration,
const QEasingCurve& curve, UIEffects::Centre centre)
{
setStartValue(from);
setEndValue(to);
m_centre = centre;
setDuration(duration);
setDuration(duration.count());
setEasingCurve(curve);
}

Expand All @@ -60,11 +62,12 @@ void Animation::Set(const QVariant& from, const QVariant& to, int duration,
*/
void Animation::Start(bool forwards, float speed)
{
if (duration() == 0)
auto duration_ms = std::chrono::milliseconds(duration());
if (duration_ms == 0ms)
return;

m_elapsed = forwards ? 0 : duration();
setCurrentTime(m_elapsed);
m_elapsed = forwards ? 0ms : duration_ms;
setCurrentTime(m_elapsed.count());

AbstractAnimation::Start(forwards, speed);
}
Expand All @@ -77,14 +80,14 @@ void Animation::Pulse()
if (!m_running)
return;

int64_t current = QDateTime::currentMSecsSinceEpoch();
int interval = std::min(static_cast<int>(current - m_lastUpdate), 50);
std::chrono::milliseconds current = MythDate::currentMSecsSinceEpochAsDuration();
std::chrono::milliseconds interval = std::min(current - m_lastUpdate, 50ms);
m_lastUpdate = current;
m_elapsed += (m_forwards ? interval : -interval) * static_cast<int>(m_speed);
setCurrentTime(m_elapsed);
setCurrentTime(m_elapsed.count());

// Detect completion
if ((m_forwards && m_elapsed >= duration()) || (!m_forwards && m_elapsed <= 0))
if ((m_forwards && m_elapsed.count() >= duration()) || (!m_forwards && m_elapsed <= 0ms))
Finished();
}

Expand Down Expand Up @@ -454,7 +457,7 @@ void Slide::Zoom(int percentage)
{
if (m_zoomAnimation)
{
m_zoomAnimation->Set(m_zoom, newZoom, 250, QEasingCurve::OutQuad);
m_zoomAnimation->Set(m_zoom, newZoom, 250ms, QEasingCurve::OutQuad);
m_zoomAnimation->Start();
}
else
Expand Down Expand Up @@ -502,7 +505,7 @@ void Slide::Pan(QPoint offset)

if (m_panAnimation)
{
m_panAnimation->Set(start, dest, 250, QEasingCurve::Linear);
m_panAnimation->Set(start, dest, 250ms, QEasingCurve::Linear);
m_panAnimation->Start();
}
else
Expand Down
7 changes: 3 additions & 4 deletions mythtv/programs/mythfrontend/galleryslide.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
#include "mythuiimage.h"
#include "imagetypes.h"


// Min/max zoom extents available in slideshow
#define MIN_ZOOM (0.1F)
#define MAX_ZOOM (20.0F)
Expand Down Expand Up @@ -68,7 +67,7 @@ class Animation : public AbstractAnimation, public QVariantAnimation
void Start(bool forwards = true, float speed = 1.0) override; // AbstractAnimation
void Pulse() override; // AbstractAnimation
void Set(const QVariant& from, const QVariant& to,
int duration = 500,
std::chrono::milliseconds duration = 500ms,
const QEasingCurve& curve = QEasingCurve::InOutCubic,
UIEffects::Centre centre = UIEffects::Middle);
void updateCurrentValue(const QVariant &value) override; // QVariantAnimation
Expand All @@ -82,8 +81,8 @@ class Animation : public AbstractAnimation, public QVariantAnimation
UIEffects::Centre m_centre {UIEffects::Middle};
//! Current millisec position within animation, 0..duration.
//! Decreases duration..0 when playing backwards
int m_elapsed {0};
int64_t m_lastUpdate { QDateTime::currentMSecsSinceEpoch() };
std::chrono::milliseconds m_elapsed {0ms};
std::chrono::milliseconds m_lastUpdate { MythDate::currentMSecsSinceEpochAsDuration() };
};


Expand Down
4 changes: 2 additions & 2 deletions mythtv/programs/mythfrontend/galleryslideview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ GallerySlideView::GallerySlideView(MythScreenStack *parent, const char *name,
gCoreContext->GetNumSetting("GalleryTransitionType",
kBlendTransition))),
m_infoList(*this),
m_slideShowTime(gCoreContext->GetNumSetting("GallerySlideShowTime", 3000)),
m_slideShowTime(gCoreContext->GetDurSetting<std::chrono::milliseconds>("GallerySlideShowTime", 3s)),
m_showCaptions(gCoreContext->GetBoolSetting("GalleryShowSlideCaptions", true)),
m_editsAllowed(editsAllowed)
{
Expand All @@ -51,7 +51,7 @@ GallerySlideView::GallerySlideView(MythScreenStack *parent, const char *name,

// Initialise status delay timer
m_delay.setSingleShot(true);
m_delay.setInterval(gCoreContext->GetNumSetting("GalleryStatusDelay", 0));
m_delay.setInterval(gCoreContext->GetDurSetting<std::chrono::milliseconds>("GalleryStatusDelay", 0s));
connect(&m_delay, &QTimer::timeout, this, &GallerySlideView::ShowStatus);
}

Expand Down
2 changes: 1 addition & 1 deletion mythtv/programs/mythfrontend/galleryslideview.h
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ private slots:

SlideBuffer m_slides; //!< A queue of slides used to display images.
InfoList m_infoList; //!< Image details overlay
int m_slideShowTime {3000}; //!< Time to display a slide in a slideshow
std::chrono::milliseconds m_slideShowTime {3s}; //!< Time to display a slide in a slideshow
QTimer m_timer; //!< Slide duration timer
QTimer m_delay; //!< Status delay timer
QString m_statusText; //!< Text to display as status
Expand Down
2 changes: 1 addition & 1 deletion mythtv/programs/mythfrontend/gallerytransitions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@


Transition::Transition(const QString& name)
: m_duration(gCoreContext->GetNumSetting("GalleryTransitionTime", 1000))
{
m_duration = gCoreContext->GetDurSetting<std::chrono::milliseconds>("GalleryTransitionTime", 1s);
setObjectName(name);
}

Expand Down
2 changes: 1 addition & 1 deletion mythtv/programs/mythfrontend/gallerytransitions.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ protected slots:

protected:
//! Seconds transition will last
int m_duration {1000};
std::chrono::milliseconds m_duration {1s};
//! The image currently displayed, which will be replaced
//! (whatever the transition direction)
Slide *m_old {nullptr};
Expand Down