diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2008-02-16 13:59:09 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2008-02-16 13:59:09 +0100 |
commit | 6b35173789c2d97fc6b9dadb780a22316f82c7fb (patch) | |
tree | 26c434da20b9a824a8e99ac9c672e228ac785904 /device.c | |
parent | 741400fa666f9754337652c624e95aa6bdfaf98c (diff) | |
download | vdr-6b35173789c2d97fc6b9dadb780a22316f82c7fb.tar.gz vdr-6b35173789c2d97fc6b9dadb780a22316f82c7fb.tar.bz2 |
Implemented the cStatus, cDevice and cPlayer functions for setting subtitle tracks in plugins
Diffstat (limited to 'device.c')
-rw-r--r-- | device.c | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -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) { |