From 72915e8b76b2e5da9ddc90e892a544b6de512f39 Mon Sep 17 00:00:00 2001 From: sfan5 Date: Mon, 29 Nov 2021 12:39:20 +0100 Subject: {player,video}: remove references to obsolete opengl-cb API --- player/client.c | 3 +-- player/video.c | 6 +++--- 2 files changed, 4 insertions(+), 5 deletions(-) (limited to 'player') diff --git a/player/client.c b/player/client.c index 27f42afd74..0c6e829015 100644 --- a/player/client.c +++ b/player/client.c @@ -2181,10 +2181,9 @@ mp_client_api_acquire_render_context(struct mp_client_api *ca) return res; } -// Emulation of old opengl_cb API. +// Stubs of the old opengl_cb API. #include "libmpv/opengl_cb.h" -#include "libmpv/render_gl.h" void mpv_opengl_cb_set_update_callback(mpv_opengl_cb_context *ctx, mpv_opengl_cb_update_fn callback, diff --git a/player/video.c b/player/video.c index 734835d850..cae23df1c8 100644 --- a/player/video.c +++ b/player/video.c @@ -176,9 +176,9 @@ int init_video_decoder(struct MPContext *mpctx, struct track *track) // If possible, set this as parent so the decoder gets the hwdec and DR // interfaces. - // Note: at least mpv_opengl_cb_uninit_gl() relies on being able to get - // rid of all references to the VO by destroying the VO chain. Thus, - // decoders not linked to vo_chain must not use the hwdec context. + // Note: We rely on being able to get rid of all references to the VO by + // destroying the VO chain. Thus, decoders not linked to vo_chain + // must not use the hwdec context. if (track->vo_c) parent = track->vo_c->filter->f; -- cgit v1.2.3