mirror of
https://github.com/mpv-player/mpv
synced 2024-12-23 15:22:09 +00:00
client API: fix mpv_set_property() return value before init
Did not return success as success. Fixes #3988.
This commit is contained in:
parent
43386a7c92
commit
f34faca910
@ -1088,6 +1088,7 @@ int mpv_set_property(mpv_handle *ctx, const char *name, mpv_format format,
|
||||
mp_get_property_id(ctx->mpctx, name) >= 0)
|
||||
return MPV_ERROR_PROPERTY_UNAVAILABLE;
|
||||
switch (r) {
|
||||
case MPV_ERROR_SUCCESS: return MPV_ERROR_SUCCESS;
|
||||
case MPV_ERROR_OPTION_FORMAT: return MPV_ERROR_PROPERTY_FORMAT;
|
||||
case MPV_ERROR_OPTION_NOT_FOUND: return MPV_ERROR_PROPERTY_NOT_FOUND;
|
||||
default: return MPV_ERROR_PROPERTY_ERROR;
|
||||
|
Loading…
Reference in New Issue
Block a user