Permalink
Browse files

Fix compilation warning

Make VDPAU and OpenGL profile creation conditional on relevant compilation flag
  • Loading branch information...
1 parent 072a38a commit 1b500ba2d46f7d3c31e540234544a4c440dd3fd5 @jyavenard jyavenard committed Apr 14, 2012
Showing with 8 additions and 0 deletions.
  1. +4 −0 mythtv/libs/libmythtv/videodisplayprofile.cpp
  2. +4 −0 mythtv/libs/libmythtv/videodisplayprofile.h
@@ -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");
@@ -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)
@@ -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");
@@ -1168,6 +1171,7 @@ void VideoDisplayProfile::CreateOpenGLProfiles(const QString &hostname)
"opengldoubleratelinearblend", "opengllinearblend",
"");
}
+#endif
void VideoDisplayProfile::CreateProfiles(const QString &hostname)
{
@@ -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);

0 comments on commit 1b500ba

Please sign in to comment.