[MPlayer-cvslog] r25430 - trunk/command.c

ulion subversion at mplayerhq.hu
Mon Dec 17 04:42:55 CET 2007


Author: ulion
Date: Mon Dec 17 04:42:54 2007
New Revision: 25430

Log:
Modified for using chapter property for $(NAME:TEXT) or ?(NAME:TEXT).


Modified:
   trunk/command.c

Modified: trunk/command.c
==============================================================================
--- trunk/command.c	(original)
+++ trunk/command.c	Mon Dec 17 04:42:54 2007
@@ -381,9 +381,12 @@ static int mp_property_chapter(m_option_
 
     switch (action) {
     case M_PROPERTY_GET:
+        chapter = demuxer_get_current_chapter(mpctx->demuxer);
+        if (chapter < 0)
+            return M_PROPERTY_UNAVAILABLE;
         if (!arg)
             return M_PROPERTY_ERROR;
-        *(int *) arg = demuxer_get_current_chapter(mpctx->demuxer);
+        *(int *) arg = chapter;
         return M_PROPERTY_OK;
     case M_PROPERTY_PRINT: {
         if (!arg)



More information about the MPlayer-cvslog mailing list