From f34faca9106237f1b1a1608c72873d529e4ea627 Mon Sep 17 00:00:00 2001 From: wm4 Date: Wed, 4 Jan 2017 15:08:41 +0100 Subject: [PATCH] client API: fix mpv_set_property() return value before init Did not return success as success. Fixes #3988. --- player/client.c | 1 + 1 file changed, 1 insertion(+) 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;