diff vobsub.c @ 7780:9806d65986e4

Mplayer can switch between subtitles of different languages during playing by press 'j', based on a patch by <hephooey@fastmail.fm>.
author kmkaplan
date Thu, 17 Oct 2002 15:44:41 +0000
parents ad00ad5f25a9
children 3d6904cee13e
line wrap: on
line diff
--- a/vobsub.c	Thu Oct 17 15:41:20 2002 +0000
+++ b/vobsub.c	Thu Oct 17 15:44:41 2002 +0000
@@ -1134,6 +1134,20 @@
     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;