From a76eecdc2ca5a31125a1a1372388eb3b10fa857a Mon Sep 17 00:00:00 2001 From: Akemi Date: Wed, 28 Feb 2018 15:09:14 +0100 Subject: client: remove legacy API that is unused now this API was introduced in c5e4538 solely for the use with cocoa-cb and was not public. with the port to the new API in 760d471 it is now unused and can safely be removed. --- player/client.c | 34 +--------------------------------- 1 file changed, 1 insertion(+), 33 deletions(-) (limited to 'player/client.c') diff --git a/player/client.c b/player/client.c index 45af55bee9..a8b90082cc 100644 --- a/player/client.c +++ b/player/client.c @@ -1836,39 +1836,12 @@ int mpv_opengl_cb_uninit_gl(mpv_opengl_cb_context *ctx) return 0; } -void mp_client_set_control_callback(struct mpv_opengl_cb_context *ctx, - mpv_opengl_cb_control_fn callback, - void *callback_ctx) -{ - if (ctx->client_api->render_context) { - mp_render_context_set_control_callback(ctx->client_api->render_context, - callback, callback_ctx); - } -} - -void mp_client_set_icc_profile(struct mpv_opengl_cb_context *ctx, bstr icc_data) -{ - if (!ctx->client_api->render_context) - return; - mpv_render_param param = {MPV_RENDER_PARAM_ICC_PROFILE, - &(mpv_byte_array){icc_data.start, icc_data.len}}; - mpv_render_context_set_parameter(ctx->client_api->render_context, param); -} - -void mp_client_set_ambient_lux(struct mpv_opengl_cb_context *ctx, int lux) -{ - if (!ctx->client_api->render_context) - return; - mpv_render_param param = {MPV_RENDER_PARAM_AMBIENT_LIGHT, &(int){lux}}; - mpv_render_context_set_parameter(ctx->client_api->render_context, param); -} - int mpv_opengl_cb_render(mpv_opengl_cb_context *ctx, int fbo, int vp[4]) { return mpv_opengl_cb_draw(ctx, fbo, vp[2], vp[3]); } -void *mp_get_sub_api2(mpv_handle *ctx, mpv_sub_api sub_api, bool lock) +void *mpv_get_sub_api(mpv_handle *ctx, mpv_sub_api sub_api) { if (!ctx->mpctx->initialized) return NULL; @@ -1882,11 +1855,6 @@ void *mp_get_sub_api2(mpv_handle *ctx, mpv_sub_api sub_api, bool lock) return res; } -void *mpv_get_sub_api(mpv_handle *ctx, mpv_sub_api sub_api) -{ - return mp_get_sub_api2(ctx, sub_api, true); -} - // stream_cb struct mp_custom_protocol { -- cgit v1.2.3