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

ulion subversion at mplayerhq.hu
Sat Jan 5 02:40:36 CET 2008


Author: ulion
Date: Sat Jan  5 02:40:36 2008
New Revision: 25595

Log:
Fix property audio_delay bug when step up/down with arg value NULL.


Modified:
   trunk/command.c

Modified: trunk/command.c
==============================================================================
--- trunk/command.c	(original)
+++ trunk/command.c	Sat Jan  5 02:40:36 2008
@@ -590,12 +590,12 @@ static int mp_property_audio_delay(m_opt
     switch (action) {
     case M_PROPERTY_SET:
     case M_PROPERTY_STEP_UP:
-    case M_PROPERTY_STEP_DOWN:
-	if (!arg)
-	    return M_PROPERTY_ERROR;
-	else {
+    case M_PROPERTY_STEP_DOWN: {
+	    int ret;
 	    float delay = audio_delay;
-	    m_property_delay(prop, action, arg, &audio_delay);
+	    ret = m_property_delay(prop, action, arg, &audio_delay);
+	    if (ret != M_PROPERTY_OK)
+		return ret;
 	    if (mpctx->sh_audio)
 		mpctx->delay -= audio_delay - delay;
 	}



More information about the MPlayer-cvslog mailing list