summaryrefslogtreecommitdiffstats
path: root/DOCS/client_api_examples/cocoabasic.m
diff options
context:
space:
mode:
Diffstat (limited to 'DOCS/client_api_examples/cocoabasic.m')
-rw-r--r--DOCS/client_api_examples/cocoabasic.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/DOCS/client_api_examples/cocoabasic.m b/DOCS/client_api_examples/cocoabasic.m
index 5c1a89bc2e..3324f13845 100644
--- a/DOCS/client_api_examples/cocoabasic.m
+++ b/DOCS/client_api_examples/cocoabasic.m
@@ -82,7 +82,7 @@ static void wakeup(void *);
}
#if EMBED_VIEW
- int64_t wid = (intptr_t) self->w;
+ int64_t wid = (intptr_t) [self->w contentView];
check_error(mpv_set_option(mpv, "wid", MPV_FORMAT_INT64, &wid));
#endif