summaryrefslogtreecommitdiffstats
path: root/player
diff options
context:
space:
mode:
authorsfan5 <sfan5@live.de>2021-11-29 12:39:20 +0100
committersfan5 <sfan5@live.de>2021-12-15 12:29:10 +0100
commit72915e8b76b2e5da9ddc90e892a544b6de512f39 (patch)
tree620a9384ee691e8a0925e018a9b81504a209454e /player
parent0bb15c7a133a0c213f5098d54b37c5d79718b79e (diff)
downloadmpv-72915e8b76b2e5da9ddc90e892a544b6de512f39.tar.bz2
mpv-72915e8b76b2e5da9ddc90e892a544b6de512f39.tar.xz
{player,video}: remove references to obsolete opengl-cb API
Diffstat (limited to 'player')
-rw-r--r--player/client.c3
-rw-r--r--player/video.c6
2 files changed, 4 insertions, 5 deletions
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;