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

Falling back to 'stereo' when switching channels

This commit is contained in:
Klaus Schmidinger 2005-01-16 16:10:44 +01:00
parent af94ec6b2d
commit bde66cd4f5
3 changed files with 9 additions and 1 deletions

View File

@ -1223,3 +1223,7 @@ Marco Kremer <vdr.hgm.bg@gmx.net>
Walter Koch <koch@u32.de> Walter Koch <koch@u32.de>
for adding channels for DVB-T Düsseldorf and Köln (Germany) to channels.cont.terr for adding channels for DVB-T Düsseldorf and Köln (Germany) to channels.cont.terr
Rolf Groppe <rolf@groppe.de>
for suggesting to fall back to 'stereo' when switching channels in case the user
had switched to 'left' or 'right'

View File

@ -3323,3 +3323,5 @@ Video Disk Recorder Revision History
- Extended some buffer sizes to allow handling HDTV streams (thanks to Reinhard - Extended some buffer sizes to allow handling HDTV streams (thanks to Reinhard
Nissl). Nissl).
- Added 'channels.conf.terr' entries for Düsseldorf and Köln (thanks to Walter Koch). - Added 'channels.conf.terr' entries for Düsseldorf and Köln (thanks to Walter Koch).
- Falling back to 'stereo' when switching channels in case the user had switched
to 'left' or 'right' (suggested by Rolf Groppe).

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.75 2005/01/16 14:48:52 kls Exp $ * $Id: device.c 1.76 2005/01/16 16:04:56 kls Exp $
*/ */
#include "device.h" #include "device.h"
@ -569,6 +569,8 @@ eSetChannelResult cDevice::SetChannel(const cChannel *Channel, bool LiveView)
const tTrackId *Track = GetTrack(GetCurrentAudioTrack()); const tTrackId *Track = GetTrack(GetCurrentAudioTrack());
if (!Track || !Track->id || PreferredTrack != GetCurrentAudioTrack()) if (!Track || !Track->id || PreferredTrack != GetCurrentAudioTrack())
SetCurrentAudioTrack(PreferredTrack); SetCurrentAudioTrack(PreferredTrack);
// Fall back to stereo:
SetAudioChannel(0);
} }
cStatus::MsgChannelSwitch(this, Channel->Number()); // only report status if channel switch successfull cStatus::MsgChannelSwitch(this, Channel->Number()); // only report status if channel switch successfull
} }