summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorphintuka <phintuka>2008-03-16 21:45:32 +0000
committerphintuka <phintuka>2008-03-16 21:45:32 +0000
commit776318ee9b7a92978ed7a5e101a7b7618c49d5b2 (patch)
treeff561ea8cf7abb0c68228c03132e57ecd427013e
parent3fe8690db7186ccdb455f8bee09333ebe881df51 (diff)
downloadxineliboutput-776318ee9b7a92978ed7a5e101a7b7618c49d5b2.tar.gz
xineliboutput-776318ee9b7a92978ed7a5e101a7b7618c49d5b2.tar.bz2
Use SetSubtitleTrackDevice
-rw-r--r--media_player.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/media_player.c b/media_player.c
index 1b6b406c..0c307354 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.47 2008-02-22 15:50:56 phelin Exp $
+ * $Id: media_player.c,v 1.48 2008-03-16 21:45:32 phintuka Exp $
*
*/
@@ -130,10 +130,7 @@ 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));
+ cXinelibDevice::Instance().SetSubtitleTrackDevice(Type);
#endif
}