mirror of
https://github.com/mpv-player/mpv
synced 2025-02-25 17:58:27 +00:00
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
This commit is contained in:
parent
c5362c72da
commit
a3a73031d5
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user