[mythtv] [PATCH] Add Toggle CC to OSD Menu
Dan Morphis
dan at milkcarton.com
Sun Mar 14 19:47:46 EST 2004
Just as the subject says, this patch adds "Toggle Closed
Captioning/Teletext" to BuildOSDTreeMenu and the code to handle the
action in TreeMenuSelected.
-dan
-------------- next part --------------
Index: tv_play.cpp
===================================================================
RCS file: /var/lib/mythcvs/mythtv/libs/libmythtv/tv_play.cpp,v
retrieving revision 1.167
diff -u -d -r1.167 tv_play.cpp
--- tv_play.cpp 2 Mar 2004 22:02:14 -0000 1.167
+++ tv_play.cpp 15 Mar 2004 00:41:25 -0000
@@ -3449,6 +3449,8 @@
{
if (action == "GUIDE")
LoadMenu();
+ else if (action == "TOGGLECC")
+ nvp->ToggleCC();
else if (action == "TOGGLEPIPMODE")
TogglePIPView();
else if (action == "TOGGLEPIPWINDOW")
@@ -3520,6 +3522,9 @@
item = new OSDGenericTree(treeMenu, tr("Program Guide"), "GUIDE");
+ item = new OSDGenericTree(treeMenu, tr("Toggle Closed Captioning/Teletext"),
+ "TOGGLECC");
+
item = new OSDGenericTree(treeMenu, tr("Picture-in-Picture"));
subitem = new OSDGenericTree(item, tr("Enable/Disable"),
"TOGGLEPIPMODE");
More information about the mythtv-dev
mailing list