[MPlayer-cvslog] r19482 - trunk/stream/stream_dvd.c
nicodvb
subversion at mplayerhq.hu
Mon Aug 21 21:13:36 CEST 2006
Author: nicodvb
Date: Mon Aug 21 21:13:36 2006
New Revision: 19482
Modified:
trunk/stream/stream_dvd.c
Log:
implemented STREAM_CTRL_GET_NUM_CHAPTERS
Modified: trunk/stream/stream_dvd.c
==============================================================================
--- trunk/stream/stream_dvd.c (original)
+++ trunk/stream/stream_dvd.c Mon Aug 21 21:13:36 2006
@@ -514,6 +514,12 @@
*((unsigned int *)arg) = mp_get_titleset_length(d->vts_file, d->tt_srpt, d->cur_title-1);
return 1;
}
+ case STREAM_CTRL_GET_NUM_CHAPTERS:
+ {
+ if(! d->cur_pgc->nr_of_programs) return STREAM_UNSUPORTED;
+ *((unsigned int *)arg) = d->cur_pgc->nr_of_programs;
+ return 1;
+ }
case STREAM_CTRL_SEEK_TO_CHAPTER:
{
int r = seek_to_chapter(stream, d->vts_file, d->tt_srpt, d->cur_title-1, *((unsigned int *)arg));
More information about the MPlayer-cvslog
mailing list