[MPlayer-cvslog] r19483 - trunk/stream/stream_dvdnav.c

nicodvb subversion at mplayerhq.hu
Mon Aug 21 21:16:39 CEST 2006


Author: nicodvb
Date: Mon Aug 21 21:16:39 2006
New Revision: 19483

Modified:
   trunk/stream/stream_dvdnav.c

Log:
implemented STREAM_CTRL_GET_NUM_CHAPTERS

Modified: trunk/stream/stream_dvdnav.c
==============================================================================
--- trunk/stream/stream_dvdnav.c	(original)
+++ trunk/stream/stream_dvdnav.c	Mon Aug 21 21:16:39 2006
@@ -356,6 +356,17 @@
         break;
       return 1;
     }
+    case STREAM_CTRL_GET_NUM_CHAPTERS:
+    {
+      if(dvdnav_current_title_info(dvdnav_priv->dvdnav, &tit, &part) != DVDNAV_STATUS_OK)
+        break;
+      if(dvdnav_get_number_of_parts(dvdnav_priv->dvdnav, tit, &part) != DVDNAV_STATUS_OK)
+        break;
+      if(!part)
+        break;
+      *((unsigned int *)arg) = part;
+      return 1;
+    }
     case STREAM_CTRL_GET_CURRENT_CHAPTER:
     {
       if(dvdnav_current_title_info(dvdnav_priv->dvdnav, &tit, &part) != DVDNAV_STATUS_OK)



More information about the MPlayer-cvslog mailing list