diff --git a/mythtv/libs/libmythtv/mythplayer.cpp b/mythtv/libs/libmythtv/mythplayer.cpp
index 1261340..da15c51 100644
a
|
b
|
|
8 | 8 | #include <cstdlib> |
9 | 9 | #include <cerrno> |
10 | 10 | #include <ctime> |
11 | | #include <cmath> |
12 | 11 | |
13 | 12 | // POSIX headers |
14 | 13 | #include <unistd.h> |
… |
… |
using namespace std; |
25 | 24 | #include <QCoreApplication> |
26 | 25 | #include <QKeyEvent> |
27 | 26 | #include <QDir> |
| 27 | #include <QtCore/qnumeric.h> |
28 | 28 | |
29 | 29 | // MythTV headers |
30 | 30 | #include "mthread.h" |
… |
… |
extern "C" { |
74 | 74 | #define round(x) ((int) ((x) + 0.5)) |
75 | 75 | #endif |
76 | 76 | |
77 | | #if CONFIG_DARWIN |
78 | | extern "C" { |
79 | | int isnan(double); |
80 | | } |
81 | | #endif |
82 | | |
83 | 77 | static unsigned dbg_ident(const MythPlayer*); |
84 | 78 | |
85 | 79 | #define LOC QString("Player(%1): ").arg(dbg_ident(this),0,36) |
… |
… |
void MythPlayer::SetScanType(FrameScanType scan) |
795 | 789 | void MythPlayer::SetVideoParams(int width, int height, double fps, |
796 | 790 | FrameScanType scan) |
797 | 791 | { |
798 | | if (width < 1 || height < 1 || isnan(fps)) |
| 792 | if (width < 1 || height < 1 || qIsNaN(fps)) |
799 | 793 | return; |
800 | 794 | |
801 | 795 | video_dim = QSize((width + 15) & ~0xf, (height + 15) & ~0xf); |