Restricted the "setting audio track" log message to automatic changes during replay

This commit is contained in:
Klaus Schmidinger 2005-02-08 13:21:34 +01:00
parent 93d2375299
commit 74accfb1dc
2 changed files with 4 additions and 2 deletions

View File

@ -3381,3 +3381,4 @@ Video Disk Recorder Revision History
- Fixed a possible freeze in pause mode in case a device's PlayPesPacket() function - Fixed a possible freeze in pause mode in case a device's PlayPesPacket() function
permanently returns 0 (thanks to Reinhard Nissl and Olaf Titz). permanently returns 0 (thanks to Reinhard Nissl and Olaf Titz).
- Completed the Finnish OSD texts (thanks to Rolf Ahrenberg). - Completed the Finnish OSD texts (thanks to Rolf Ahrenberg).
- Restricted the "setting audio track" log message to automatic changes during replay.

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: 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" #include "device.h"
@ -756,6 +756,7 @@ void cDevice::EnsureAudioTrack(bool Force)
// Make sure we're set to an available audio track: // Make sure we're set to an available audio track:
const tTrackId *Track = GetTrack(GetCurrentAudioTrack()); const tTrackId *Track = GetTrack(GetCurrentAudioTrack());
if (Force || !Track || !Track->id || PreferredTrack != GetCurrentAudioTrack()) { if (Force || !Track || !Track->id || PreferredTrack != GetCurrentAudioTrack()) {
if (!Force) // only log this for automatic changes
dsyslog("setting audio track to %d", PreferredTrack); dsyslog("setting audio track to %d", PreferredTrack);
SetCurrentAudioTrack(PreferredTrack); SetCurrentAudioTrack(PreferredTrack);
} }