diff options
author | albeu <albeu@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-05-30 06:39:21 +0000 |
---|---|---|
committer | albeu <albeu@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-05-30 06:39:21 +0000 |
commit | a3a73031d5fc7f60236854f933b230fbd17ebd81 (patch) | |
tree | 42f41f1f9601d5ba195cc81fa7894225ecd9b3a2 /m_property.c | |
parent | c5362c72da7dcd82e061bbd2e9242a9cd3a86229 (diff) | |
download | mpv-a3a73031d5fc7f60236854f933b230fbd17ebd81.tar.bz2 mpv-a3a73031d5fc7f60236854f933b230fbd17ebd81.tar.xz |
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
Diffstat (limited to 'm_property.c')
-rw-r--r-- | m_property.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |