summaryrefslogtreecommitdiffstats
path: root/video
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-05-06 21:08:26 +0200
committerwm4 <wm4@nowhere>2015-05-06 21:48:39 +0200
commitf58d3591d9c192c9d68a76a0a4ffddd7516c0ef2 (patch)
tree32dccf46d6fdaaea00b5cd0994cecadb04dac675 /video
parent0ae0e90eb5348c58d5b4f13fe0792199c460a4b6 (diff)
downloadmpv-f58d3591d9c192c9d68a76a0a4ffddd7516c0ef2.tar.bz2
mpv-f58d3591d9c192c9d68a76a0a4ffddd7516c0ef2.tar.xz
cocoa: remove an unused parameter
Diffstat (limited to 'video')
-rw-r--r--video/out/cocoa_common.h2
-rw-r--r--video/out/cocoa_common.m2
-rw-r--r--video/out/gl_cocoa.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/video/out/cocoa_common.h b/video/out/cocoa_common.h
index e2bed88d08..5b440384fe 100644
--- a/video/out/cocoa_common.h
+++ b/video/out/cocoa_common.h
@@ -27,7 +27,7 @@ struct vo_cocoa_state;
int vo_cocoa_init(struct vo *vo);
void vo_cocoa_uninit(struct vo *vo);
-int vo_cocoa_config_window(struct vo *vo, uint32_t flags, void *gl_ctx);
+int vo_cocoa_config_window(struct vo *vo, uint32_t flags);
void vo_cocoa_set_current_context(struct vo *vo, bool current);
bool vo_cocoa_start_frame(struct vo *vo);
diff --git a/video/out/cocoa_common.m b/video/out/cocoa_common.m
index f9508d6719..a9600dd518 100644
--- a/video/out/cocoa_common.m
+++ b/video/out/cocoa_common.m
@@ -550,7 +550,7 @@ void vo_cocoa_release_nsgl_ctx(struct vo *vo)
s->gl_ctx = nil;
}
-int vo_cocoa_config_window(struct vo *vo, uint32_t flags, void *gl_ctx)
+int vo_cocoa_config_window(struct vo *vo, uint32_t flags)
{
struct vo_cocoa_state *s = vo->cocoa;
with_cocoa_lock_on_main_thread(vo, ^{
diff --git a/video/out/gl_cocoa.c b/video/out/gl_cocoa.c
index 014bf38204..1ff9c668ed 100644
--- a/video/out/gl_cocoa.c
+++ b/video/out/gl_cocoa.c
@@ -141,7 +141,7 @@ static bool config_window_cocoa(struct MPGLContext *ctx, int flags)
if (!ctx->gl->SwapInterval)
ctx->gl->SwapInterval = set_swap_interval;
- vo_cocoa_config_window(ctx->vo, flags, p->ctx);
+ vo_cocoa_config_window(ctx->vo, flags);
return true;
}