Skip to content
Browse files

TV: Add an OSD menu option to display the playback debugging window.

It can be found under playback...
  • Loading branch information...
1 parent 1e4a61b commit 914588b940bf71aa43d3cb8c9621db71f8a112ec Mark Kendall committed Jun 4, 2011
Showing with 4 additions and 1 deletion.
  1. +4 −1 mythtv/libs/libmythtv/tv_play.cpp
View
5 mythtv/libs/libmythtv/tv_play.cpp
@@ -6898,7 +6898,6 @@ void TV::ToggleOSD(PlayerContext *ctx, bool includeStatusOSD)
void TV::ToggleOSDDebug(PlayerContext *ctx)
{
- bool show = false;
OSD *osd = GetOSDLock(ctx);
if (osd && osd->IsWindowVisible("osd_debug"))
{
@@ -9495,6 +9494,8 @@ void TV::OSDDialogEvent(int result, QString text, QString action)
DoJumpRWND(actx);
else if (action.startsWith("DEINTERLACER"))
HandleDeinterlacer(actx, action);
+ else if (action == ACTION_TOGGLEOSDDEBUG)
+ ToggleOSDDebug(actx);
else if (action == "TOGGLEMANUALZOOM")
SetManualZoom(actx, true, tr("Zoom Mode ON"));
else if (action == "TOGGLESTRETCH")
@@ -10633,6 +10634,8 @@ void TV::FillOSDMenuPlayback(const PlayerContext *ctx, OSD *osd,
}
if (!db_browse_always)
osd->DialogAddButton(tr("Toggle Browse Mode"), "TOGGLEBROWSE");
+ osd->DialogAddButton(tr("Playback data"),
+ ACTION_TOGGLEOSDDEBUG, false, false);
}
else if (category == "TIMESTRETCH")
{

0 comments on commit 914588b

Please sign in to comment.
Something went wrong with that request. Please try again.