summaryrefslogtreecommitdiffstats
path: root/vobsub.c
diff options
context:
space:
mode:
Diffstat (limited to 'vobsub.c')
-rw-r--r--vobsub.c14
1 files changed, 14 insertions, 0 deletions
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;