Permalink
Browse files

Don't display null renderers in setup.

Skip the nullvaapi and nullvdpau renderers, added in 42d9577 and
a0f824e , when creating the list of renderers for users to choose in
setup.  This simply extends the approach used to handle the null
renderer for the new hardware-specific null renderers.

Signed-off-by: Michael T. Dean <mdean@mythtv.org>
  • Loading branch information...
1 parent 643ad3e commit bdfcabc84ca40713d0e91aa5307f5a5a4055dc49 @dekarl dekarl committed with sphery Jul 25, 2012
@@ -1209,7 +1209,8 @@ QString VideoDisplayProfile::GetVideoRendererHelp(const QString &renderer)
if (renderer.isEmpty())
return msg;
- if (renderer == "null")
+ if ((renderer == "null") || (renderer == "nullvaapi") ||
+ (renderer == "nullvdpau"))
msg = QObject::tr(
"Render video offscreen. Used internally.");
@@ -726,7 +726,7 @@ void PlaybackProfileItemConfig::decoderChanged(const QString &dec)
vidrend->clearSelections();
for (it = renderers.begin(); it != renderers.end(); ++it)
{
- if (*it != "null")
+ if ((*it != "null") && (*it != "nullvaapi") && (*it != "nullvdpau"))
vidrend->addSelection(*it, *it, (*it == prenderer));
}

0 comments on commit bdfcabc

Please sign in to comment.