diff options
author | wm4 <wm4@nowhere> | 2014-02-24 20:16:22 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-02-24 22:50:23 +0100 |
commit | 62653605da7face548863e8fcbc76ccbad3e3db8 (patch) | |
tree | 88e4460317656eeda1fc728fda4c6b132e977c76 /options/m_property.c | |
parent | 91f752f43f1f38223902cd1dadd272da5aab1ce9 (diff) | |
download | mpv-62653605da7face548863e8fcbc76ccbad3e3db8.tar.bz2 mpv-62653605da7face548863e8fcbc76ccbad3e3db8.tar.xz |
client API: add support for accessing properties by their native type
This actually makes use of the client.h declarations and the mpv_node
mechanisms added some commits ago.
For now, using MPV_FORMAT_STRING will usually fallback to explicit
string conversion, but not in the other cases. E.g. reading a numeric
property as string will work, but not reading a string property as
number. Other than that, only MPV_FORMAT_INT64->MPV_FORMAT_DOUBLE does
an automatic conversion.
I'm not sure whether these semantics and API are good, so comments and
suggestions are welcome.
Diffstat (limited to 'options/m_property.c')
0 files changed, 0 insertions, 0 deletions