From 74accfb1dc57e3f246ceaa7b202063558439c127 Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Tue, 8 Feb 2005 13:21:34 +0100 Subject: Restricted the "setting audio track" log message to automatic changes during replay --- HISTORY | 1 + device.c | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/HISTORY b/HISTORY index 7662aa8d..c864a5d5 100644 --- a/HISTORY +++ b/HISTORY @@ -3381,3 +3381,4 @@ Video Disk Recorder Revision History - Fixed a possible freeze in pause mode in case a device's PlayPesPacket() function permanently returns 0 (thanks to Reinhard Nissl and Olaf Titz). - Completed the Finnish OSD texts (thanks to Rolf Ahrenberg). +- Restricted the "setting audio track" log message to automatic changes during replay. diff --git a/device.c b/device.c index d67639fe..022f9a3e 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.88 2005/02/08 11:37:09 kls Exp $ + * $Id: device.c 1.89 2005/02/08 13:06:12 kls Exp $ */ #include "device.h" @@ -756,7 +756,8 @@ void cDevice::EnsureAudioTrack(bool Force) // Make sure we're set to an available audio track: const tTrackId *Track = GetTrack(GetCurrentAudioTrack()); if (Force || !Track || !Track->id || PreferredTrack != GetCurrentAudioTrack()) { - dsyslog("setting audio track to %d", PreferredTrack); + if (!Force) // only log this for automatic changes + dsyslog("setting audio track to %d", PreferredTrack); SetCurrentAudioTrack(PreferredTrack); } } -- cgit v1.2.3