Permalink
Browse files

Change the ADJUSTSTRETCH action to also support toggling.

Previously, pressing ADJUSTSTRETCH while alredy in time-stretch adjust
mode exited the mode.  Doing so now toogles the time-stretch speed.
SELECT and ESCAPE can be used to exit time-stretch adjust mode
instead.  This change allows convenient access to both adjusting and
toggling the time-stretch speed with a single key.
  • Loading branch information...
1 parent 2865936 commit b79da45b64497237e138ca3b1914a0344d2b9dd0 @gigem gigem committed May 2, 2013
Showing with 2 additions and 0 deletions.
  1. +2 −0 mythtv/libs/libmythtv/tv_play.cpp
@@ -4105,6 +4105,8 @@ bool TV::TimeStretchHandleAction(PlayerContext *ctx,
else if (has_action(ACTION_UP, actions))
ChangeTimeStretch(ctx, 5);
else if (has_action("ADJUSTSTRETCH", actions))
+ ToggleTimeStretch(ctx);
+ else if (has_action(ACTION_SELECT, actions))
ClearOSD(ctx);
else
handled = false;

0 comments on commit b79da45

Please sign in to comment.