[MPlayer-cvslog] r23413 - trunk/m_property.c

albeu subversion at mplayerhq.hu
Wed May 30 08:39:21 CEST 2007


Author: albeu
Date: Wed May 30 08:39:21 2007
New Revision: 23413

Log:
Fix fallback on the default GET_TYPE for unvailable/disabled
properties.


Modified:
   trunk/m_property.c

Modified: trunk/m_property.c
==============================================================================
--- trunk/m_property.c	(original)
+++ trunk/m_property.c	Wed May 30 08:39:21 2007
@@ -38,7 +38,7 @@ static int do_action(m_option_t* prop_li
         prop = m_option_list_find(prop_list, name);
     if(!prop) return M_PROPERTY_UNKNOWN;
     r = ((m_property_ctrl_f)prop->p)(prop,action,arg,ctx);
-    if(action == M_PROPERTY_GET_TYPE && r == M_PROPERTY_NOT_IMPLEMENTED) {
+    if(action == M_PROPERTY_GET_TYPE && r < 0) {
         if(!arg) return M_PROPERTY_ERROR;
         *(m_option_t**)arg = prop;
         return M_PROPERTY_OK;



More information about the MPlayer-cvslog mailing list