From 5274b4c8b332c155f7510ca443e2e5768c49cae4 Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Tue, 4 Jan 2005 12:52:17 +0100 Subject: [PATCH] Explicitly switch to the selected audio track with kOk --- menu.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/menu.c b/menu.c index 3dbb2a07..54c45011 100644 --- a/menu.c +++ b/menu.c @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: menu.c 1.325 2005/01/04 11:11:16 kls Exp $ + * $Id: menu.c 1.326 2005/01/04 12:52:17 kls Exp $ */ #include "menu.h" @@ -2872,6 +2872,11 @@ eOSState cDisplayTracks::ProcessKey(eKeys Key) track = 0; timeout.Set(TRACKTIMEOUT); break; + case kOk: + if (track != cDevice::PrimaryDevice()->GetCurrentAudioTrack()) + oldTrack = -1; // make sure we explicitly switch to that track + timeout.Set(); + break; case kNone: break; default: return osEnd; }