summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorphintuka <phintuka>2008-02-22 06:01:15 +0000
committerphintuka <phintuka>2008-02-22 06:01:15 +0000
commit2f09b6a4495eda9095c89087785d33aec3b1aa57 (patch)
tree6ca72c9db0bf21f5b8e78a9892420bbb0e86c52d
parent0317cebd1c8369bafc39a6c35fb5722c76698087 (diff)
downloadxineliboutput-2f09b6a4495eda9095c89087785d33aec3b1aa57.tar.gz
xineliboutput-2f09b6a4495eda9095c89087785d33aec3b1aa57.tar.bz2
VDR doesn't handle TrackId 0, so always increment TrackId by 1.
(TrackId is not used by xineliboutput/xine anyway). Thanks to Petri Helin
-rw-r--r--frontend.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/frontend.c b/frontend.c
index 93c90e6c..5b4fa628 100644
--- a/frontend.c
+++ b/frontend.c
@@ -4,7 +4,7 @@
* See the main source file 'xineliboutput.c' for copyright information and
* how to reach the author.
*
- * $Id: frontend.c,v 1.47 2008-02-20 03:28:01 phintuka Exp $
+ * $Id: frontend.c,v 1.48 2008-02-22 06:01:15 phintuka Exp $
*
*/
@@ -117,7 +117,7 @@ void cXinelibThread::InfoHandler(const char *info)
#if VDRVERSNUM < 10515 && !defined(VDRSPUPATCH)
cXinelibDevice::Instance().SetAvailableDvdSpuTrack(id, iso639_2_to_iso639_1(lang), Current);
#else
- cXinelibDevice::Instance().SetAvailableTrack(ttSubtitle, id, id, iso639_2_to_iso639_1(lang));
+ cXinelibDevice::Instance().SetAvailableTrack(ttSubtitle, id, id+1, iso639_2_to_iso639_1(lang));
#endif
}
}