Permalink
Browse files

Don't hold the OSD lock unnecessarily when processing editor keypresses.

Refs #9234 (and should fix it)


git-svn-id: http://svn.mythtv.org/svn/trunk@27256 7dbf422c-18fa-0310-86e9-fd20926502f2
  • Loading branch information...
1 parent 3eeb6bf commit 3f2dc41d93483d04b9a9c365ba127b745f318afb Mark Kendall committed Nov 17, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 mythtv/libs/libmythtv/tv_play.cpp
View
4 mythtv/libs/libmythtv/tv_play.cpp
@@ -3617,8 +3617,9 @@ void TV::ProcessKeypress(PlayerContext *actx, QKeyEvent *e)
osd->DialogHandleKeypress(e);
handled = true;
}
+ ReturnOSDLock(actx, osd);
- if (editmode && osd && !handled)
+ if (editmode && !handled)
{
handled |= GetMythMainWindow()->TranslateKeyPress(
"TV Editing", e, actions);
@@ -3663,7 +3664,6 @@ void TV::ProcessKeypress(PlayerContext *actx, QKeyEvent *e)
if (handled)
editmode = actx->player->GetEditMode();
}
- ReturnOSDLock(actx, osd);
if (handled)
return;

0 comments on commit 3f2dc41

Please sign in to comment.