From 43ef114abe41a1d76db1054ea214556c8f561608 Mon Sep 17 00:00:00 2001 From: kmkaplan Date: Thu, 17 Oct 2002 15:44:41 +0000 Subject: Mplayer can switch between subtitles of different languages during playing by press 'j', based on a patch by . git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7781 b3059339-0415-0410-9bf9-f77b7e298cf2 --- vobsub.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'vobsub.c') diff --git a/vobsub.c b/vobsub.c index f6037d139e..0ba6cc010c 100644 --- a/vobsub.c +++ b/vobsub.c @@ -1134,6 +1134,20 @@ vobsub_close(void *this) free(vob); } +unsigned int +vobsub_get_indexes_count(void *vobhandle) +{ + vobsub_t *vob = (vobsub_t *) vobhandle; + return vob->spu_streams_size; +} + +char * +vobsub_get_id(void *vobhandle, unsigned int index) +{ + vobsub_t *vob = (vobsub_t *) vobhandle; + return (index < vob->spu_streams_size) ? vob->spu_streams[index].id : NULL; +} + int vobsub_get_packet(void *vobhandle, float pts,void** data, int* timestamp) { vobsub_t *vob = (vobsub_t *)vobhandle; -- cgit v1.2.3