From 87209df391f9554a95c4e7af06ebddd6b8b39ddb Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Sun, 27 Feb 2005 13:58:22 +0100 Subject: [PATCH] Keeping the track language codes and descriptions in Transfer Mode --- CONTRIBUTORS | 4 ++++ HISTORY | 2 ++ device.c | 5 +++-- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/CONTRIBUTORS b/CONTRIBUTORS index c22ce686..52d52244 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -1288,3 +1288,7 @@ Chad Flynt Chris Warren for pointing out that the call to system("sync") in SpinUpDisk() should be replaced with fsync(f) to avoid problems on NPTL systems + +Luca Olivetti + for making cDevice::AttachPlayer() keep the track language codes and descriptions + in Transfer Mode diff --git a/HISTORY b/HISTORY index 6b9f2839..37543d1b 100644 --- a/HISTORY +++ b/HISTORY @@ -3439,3 +3439,5 @@ Video Disk Recorder Revision History - Fixed ensuring there is a current audio track in case there is only one track (thanks to Werner Fink for reporting this one). - Improved automatic audio track selection. +- Keeping the track language codes and descriptions in Transfer Mode (thanks to + Luca Olivetti). diff --git a/device.c b/device.c index aecee91e..d6ab8911 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.98 2005/02/27 13:35:34 kls Exp $ + * $Id: device.c 1.99 2005/02/27 13:55:15 kls Exp $ */ #include "device.h" @@ -842,7 +842,8 @@ bool cDevice::AttachPlayer(cPlayer *Player) if (CanReplay()) { if (player) Detach(player); - ClrAvailableTracks(); + if (!dynamic_cast(Player)) + ClrAvailableTracks(); pesAssembler->Reset(); player = Player; SetPlayMode(player->playMode);