summaryrefslogtreecommitdiff
path: root/device.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2005-02-06 12:31:36 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2005-02-06 12:31:36 +0100
commit20b213201a897e5a6d88fb889cc44865d07dfb57 (patch)
treec40c8d124517a81e38109ec707bb73fddd3d9ac3 /device.c
parent506eb479a567ef00b4c2a332007ba3e03cbe21ef (diff)
downloadvdr-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.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/device.c b/device.c
index 8d52a2c1..ad852d3a 100644
--- a/device.c
+++ b/device.c
@@ -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);
}