1
0
mirror of https://github.com/VDR4Arch/vdr.git synced 2023-10-10 13:36:52 +02:00

Explicitly switch to the selected audio track with kOk

This commit is contained in:
Klaus Schmidinger 2005-01-04 12:52:17 +01:00
parent f37f5ee6be
commit 5274b4c8b3

7
menu.c
View File

@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and * See the main source file 'vdr.c' for copyright information and
* how to reach the author. * 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" #include "menu.h"
@ -2872,6 +2872,11 @@ eOSState cDisplayTracks::ProcessKey(eKeys Key)
track = 0; track = 0;
timeout.Set(TRACKTIMEOUT); timeout.Set(TRACKTIMEOUT);
break; break;
case kOk:
if (track != cDevice::PrimaryDevice()->GetCurrentAudioTrack())
oldTrack = -1; // make sure we explicitly switch to that track
timeout.Set();
break;
case kNone: break; case kNone: break;
default: return osEnd; default: return osEnd;
} }