summaryrefslogtreecommitdiffstats
path: root/options/m_option.c
diff options
context:
space:
mode:
authorxylosper <darklin20@gmail.com>2014-02-26 22:05:17 +0900
committerwm4 <wm4@nowhere>2014-02-26 21:01:54 +0100
commitc176f2be39c26509fa1588ba1365427eff43b06f (patch)
tree1679aa2aceb04b9cddbed829275d0c40a8266fe6 /options/m_option.c
parent9a7a3d125be38d46db0bf5de26e9c41392cc63fb (diff)
downloadmpv-c176f2be39c26509fa1588ba1365427eff43b06f.tar.bz2
mpv-c176f2be39c26509fa1588ba1365427eff43b06f.tar.xz
client API: fix broken property/option functions
1. Cannot set option after initialized: it seems that this bug has existed since libmpv was introduced first. Maybe just a typo. 2. Crash when setting property with native format: mpv_set_property just causes a crash when using a native format. I found an invalid casting and fixed it. 3. Wrong error value for mpv_get_property: when an error occurred, mpv_get_property always returns wrong format error because every error for property except M_PROPERTY_NOT_IMPLEMENTED is just ignored. Signed-off-by: wm4 <wm4@nowhere> Closes pull request #593. Does not incldue the first fix, which was not correct. The underlying bug will be fixed by a later commit. Commit message extracted from pull request and slightly edited.
Diffstat (limited to 'options/m_option.c')
0 files changed, 0 insertions, 0 deletions