diff options
author | phintuka <phintuka> | 2008-02-20 22:23:15 +0000 |
---|---|---|
committer | phintuka <phintuka> | 2008-02-20 22:23:15 +0000 |
commit | 7bfef9fc501f44d4cbf059e5061abbefc45251d9 (patch) | |
tree | 6f5282dc78b34a042cf52b8268d50842186bb608 | |
parent | a4a3079742faefa3865b976246dfc170ba995059 (diff) | |
download | xineliboutput-7bfef9fc501f44d4cbf059e5061abbefc45251d9.tar.gz xineliboutput-7bfef9fc501f44d4cbf059e5061abbefc45251d9.tar.bz2 |
Fix compilation with vdr-1.4.x
-rw-r--r-- | media_player.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/media_player.c b/media_player.c index 0db0beef..2069d9d1 100644 --- a/media_player.c +++ b/media_player.c @@ -4,7 +4,7 @@ * See the main source file 'xineliboutput.c' for copyright information and * how to reach the author. * - * $Id: media_player.c,v 1.45 2008-02-19 04:05:45 phintuka Exp $ + * $Id: media_player.c,v 1.46 2008-02-20 22:23:15 phintuka Exp $ * */ @@ -129,10 +129,12 @@ void cXinelibPlayer::SetAudioTrack(eTrackType Type, const tTrackId *TrackId) void cXinelibPlayer::SetSubtitleTrack(eTrackType Type, const tTrackId *TrackId) { LOGMSG("cXinelibPlayer::SetSubtitleTrack(%d %s)", (int)Type, TrackId ? TrackId->language : "?"); +#if VDRVERSNUM >= 10515 if(Type == ttNone) Control("SPUSTREAM -1"); else Control("SPUSTREAM %d", (int)(Type - ttSubtitleFirst)); +#endif } bool cXinelibPlayer::GetIndex(int &Current, int &Total, bool SnapToIFrame) |