Skip to content

Commit

Permalink
Fix compilation warning
Browse files Browse the repository at this point in the history
Make VDPAU and OpenGL profile creation conditional on relevant compilation flag
  • Loading branch information
jyavenard committed Apr 14, 2012
1 parent 072a38a commit 1b500ba
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mythtv/libs/libmythtv/videodisplayprofile.cpp
Expand Up @@ -1070,6 +1070,7 @@ void VideoDisplayProfile::CreateNewProfiles(const QString &hostname)
"linearblend", "linearblend", "");
}

#if defined(USING_VDPAU)
void VideoDisplayProfile::CreateVDPAUProfiles(const QString &hostname)
{
(void) QObject::tr("VDPAU High Quality", "Sample: VDPAU high quality");
Expand Down Expand Up @@ -1100,6 +1101,7 @@ void VideoDisplayProfile::CreateVDPAUProfiles(const QString &hostname)
"vdpaubobdeint", "vdpauonefield",
"vdpauskipchroma,vdpaucolorspace=auto");
}
#endif

#if defined(Q_OS_MACX)
void VideoDisplayProfile::CreateVDAProfiles(const QString &hostname)
Expand Down Expand Up @@ -1142,6 +1144,7 @@ void VideoDisplayProfile::CreateVDAProfiles(const QString &hostname)
}
#endif

#if defined(USING_OPENGL_VIDEO)
void VideoDisplayProfile::CreateOpenGLProfiles(const QString &hostname)
{
(void) QObject::tr("OpenGL High Quality", "Sample: OpenGL high quality");
Expand All @@ -1168,6 +1171,7 @@ void VideoDisplayProfile::CreateOpenGLProfiles(const QString &hostname)
"opengldoubleratelinearblend", "opengllinearblend",
"");
}
#endif

void VideoDisplayProfile::CreateProfiles(const QString &hostname)
{
Expand Down
4 changes: 4 additions & 0 deletions mythtv/libs/libmythtv/videodisplayprofile.h
Expand Up @@ -149,11 +149,15 @@ class MTV_PUBLIC VideoDisplayProfile
static void DeleteProfiles(const QString &hostname);
static void CreateProfiles(const QString &hostname);
static void CreateNewProfiles(const QString &hostname);
#if defined(USING_VDPAU)
static void CreateVDPAUProfiles(const QString &hostname);
#endif
#if defined(Q_OS_MACX)
static void CreateVDAProfiles(const QString &hostname);
#endif
#if defined(USING_OPENGL_VIDEO)
static void CreateOpenGLProfiles(const QString &hostname);
#endif

static QStringList GetVideoRenderers(const QString &decoder);
static QString GetVideoRendererHelp(const QString &renderer);
Expand Down

0 comments on commit 1b500ba

Please sign in to comment.