Skip to content

Commit

Permalink
Make jump points work during playback when the OSD is present.
Browse files Browse the repository at this point in the history
This works by sending an EXIT_TO_MENU event at the start of jump point
execution.  Any existing TV playback instance will receive this message
and manually shut down playback, including tearing down the OSD.

This is not the fully general solution desired, but it is a big
improvement until then.

One issue is that an editing session is not shut down cleanly.  That
will be addressed in a subsequent commit.

Refs #7939
  • Loading branch information
stichnot committed Feb 24, 2012
1 parent d59f4f4 commit 307dac8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mythtv/libs/libmythui/mythmainwindow.cpp
Expand Up @@ -1439,6 +1439,8 @@ void MythMainWindow::ExitToMainMenu(void)
MythScreenStack *toplevel = GetMainStack();
if (toplevel && d->popwindows)
{
MythEvent xe("EXIT_TO_MENU");
gCoreContext->dispatch(xe);
MythScreenType *screen = toplevel->GetTopScreen();
if (screen && screen->objectName() != QString("mainmenu"))
{
Expand Down

0 comments on commit 307dac8

Please sign in to comment.