From a3a73031d5fc7f60236854f933b230fbd17ebd81 Mon Sep 17 00:00:00 2001 From: albeu Date: Wed, 30 May 2007 06:39:21 +0000 Subject: [PATCH] Fix fallback on the default GET_TYPE for unvailable/disabled properties. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23413 b3059339-0415-0410-9bf9-f77b7e298cf2 --- m_property.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/m_property.c b/m_property.c index 20d5bbdbe7..99beef9392 100644 --- a/m_property.c +++ b/m_property.c @@ -38,7 +38,7 @@ static int do_action(m_option_t* prop_list, const char* name, 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;