aboutsummaryrefslogtreecommitdiffhomepage
path: root/player
diff options
context:
space:
mode:
authorGravatar wm4 <wm4@nowhere>2017-01-04 15:08:41 +0100
committerGravatar wm4 <wm4@nowhere>2017-01-04 15:08:41 +0100
commitf34faca9106237f1b1a1608c72873d529e4ea627 (patch)
tree661da48de7eedc2733dbc11b9748d18a7ea498b9 /player
parent43386a7c92e14e56abdebfd4ed9335794c795f2b (diff)
client API: fix mpv_set_property() return value before init
Did not return success as success. Fixes #3988.
Diffstat (limited to 'player')
-rw-r--r--player/client.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/player/client.c b/player/client.c
index 85e3c4021c..ccbec2da72 100644
--- a/player/client.c
+++ b/player/client.c
@@ -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;