summaryrefslogtreecommitdiff
path: root/device.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2008-02-16 13:59:09 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2008-02-16 13:59:09 +0100
commit6b35173789c2d97fc6b9dadb780a22316f82c7fb (patch)
tree26c434da20b9a824a8e99ac9c672e228ac785904 /device.c
parent741400fa666f9754337652c624e95aa6bdfaf98c (diff)
downloadvdr-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.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) {