diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2005-02-06 12:31:36 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2005-02-06 12:31:36 +0100 |
commit | 20b213201a897e5a6d88fb889cc44865d07dfb57 (patch) | |
tree | c40c8d124517a81e38109ec707bb73fddd3d9ac3 /device.c | |
parent | 506eb479a567ef00b4c2a332007ba3e03cbe21ef (diff) | |
download | vdr-20b213201a897e5a6d88fb889cc44865d07dfb57.tar.gz vdr-20b213201a897e5a6d88fb889cc44865d07dfb57.tar.bz2 |
Making sure the "Mute" and "Volume+/-" keys don't interfere with digital audio
Diffstat (limited to 'device.c')
-rw-r--r-- | device.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: device.c 1.83 2005/02/06 11:43:20 kls Exp $ + * $Id: device.c 1.84 2005/02/06 12:30:01 kls Exp $ */ #include "device.h" @@ -646,6 +646,7 @@ void cDevice::ClrAvailableTracks(bool DescriptionsOnly) memset(availableTracks, 0, sizeof(availableTracks)); pre_1_3_19_PrivateStream = false; SetAudioChannel(0); // fall back to stereo + currentAudioTrackMissingCount = 0; } } @@ -721,7 +722,7 @@ void cDevice::EnsureAudioTrack(bool Force) } // Make sure we're set to an available audio track: const tTrackId *Track = GetTrack(GetCurrentAudioTrack()); - if (!Track || !Track->id || PreferredTrack != GetCurrentAudioTrack()) { + if (Force || !Track || !Track->id || PreferredTrack != GetCurrentAudioTrack()) { dsyslog("setting audio track to %d", PreferredTrack); SetCurrentAudioTrack(PreferredTrack); } |