summaryrefslogtreecommitdiff
path: root/device.c
diff options
context:
space:
mode:
Diffstat (limited to 'device.c')
-rw-r--r--device.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/device.c b/device.c
index be9e7004..aaa02540 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.152 2008/02/09 16:10:56 kls Exp $
+ * $Id: device.c 1.153 2008/02/16 13:52:11 kls Exp $
*/
#include "device.h"
@@ -890,6 +890,10 @@ void cDevice::SetAudioTrackDevice(eTrackType Type)
{
}
+void cDevice::SetSubtitleTrackDevice(eTrackType Type)
+{
+}
+
bool cDevice::ToggleMute(void)
{
int OldVolume = volume;
@@ -1037,6 +1041,10 @@ bool cDevice::SetCurrentSubtitleTrack(eTrackType Type, bool Manual)
DELETENULL(dvbSubtitleConverter);
}
DELETENULL(liveSubtitle);
+ if (player)
+ player->SetSubtitleTrack(currentSubtitleTrack, GetTrack(currentSubtitleTrack));
+ else
+ SetSubtitleTrackDevice(currentSubtitleTrack);
if (currentSubtitleTrack != ttNone && !Replaying() && !Transferring()) {
const tTrackId *TrackId = GetTrack(currentSubtitleTrack);
if (TrackId && TrackId->id) {