[mythtv] Always save playback position
David Engel
dlengel at attbi.com
Sat Jun 21 22:28:22 EDT 2003
On Sat, Jun 21, 2003 at 05:32:50PM -0400, Isaac Richards wrote:
> > This patch makes saving the position the default. If Isaac doesn't
> > like it, he can delete that one line.
>
> I would prefer it if that were a config option, if you don't mind. I don't
> really want it saving the position all the time, myself.
No problem. Here's the patch.
David
--
David Engel
dlengel at attbi.com
Index: libs/libmythtv/tv_play.cpp
===================================================================
RCS file: /var/lib/mythcvs/mythtv/libs/libmythtv/tv_play.cpp,v
retrieving revision 1.70
diff -u -r1.70 tv_play.cpp
--- libs/libmythtv/tv_play.cpp 21 Jun 2003 21:32:23 -0000 1.70
+++ libs/libmythtv/tv_play.cpp 22 Jun 2003 02:22:39 -0000
@@ -968,7 +968,7 @@
case Key_Escape:
{
if (StateIsPlaying(internalState) &&
- gContext->GetNumSetting("PlaybackExitPrompt"))
+ gContext->GetNumSetting("PlaybackExitPrompt") == 1)
{
nvp->Pause();
@@ -985,6 +985,8 @@
}
else
{
+ if (gContext->GetNumSetting("PlaybackExitPrompt") == 2)
+ nvp->SetBookmark();
exitPlayer = true;
break;
}
Index: programs/mythfrontend/globalsettings.cpp
===================================================================
RCS file: /var/lib/mythcvs/mythtv/programs/mythfrontend/globalsettings.cpp,v
retrieving revision 1.70
diff -u -r1.70 globalsettings.cpp
--- programs/mythfrontend/globalsettings.cpp 20 Jun 2003 05:16:57 -0000 1.70
+++ programs/mythfrontend/globalsettings.cpp 22 Jun 2003 02:22:39 -0000
@@ -412,14 +412,17 @@
};
};
-class PlaybackExitPrompt: public CheckBoxSetting, public GlobalSetting {
+class PlaybackExitPrompt: public ComboBoxSetting, public GlobalSetting {
public:
PlaybackExitPrompt():
GlobalSetting("PlaybackExitPrompt") {
- setLabel("Prompt on playback exit");
- setValue(false);
- setHelpText("If set, a menu will be displayed when you exit "
+ setLabel("Action on playback exit");
+ setValue("0");
+ addSelection("Just exit", "0");
+ addSelection("Save position and exit", "2");
+ addSelection("Always prompt", "1");
+ setHelpText("If set to prompt, a menu will be displayed when you exit "
"playback mode. The options available will "
"allow you to save your position, delete the "
"recording, or continue watching.");
More information about the mythtv-dev
mailing list