summaryrefslogtreecommitdiffstats
path: root/video/out
diff options
context:
space:
mode:
authorStefano Pigozzi <stefano.pigozzi@gmail.com>2013-05-29 22:30:05 +0200
committerStefano Pigozzi <stefano.pigozzi@gmail.com>2013-05-30 23:02:56 +0200
commit3789e1bebf23ce1c64d8ef8d9961e6e405747c5d (patch)
treeacafb2e26e9a9fea1ac6fcc591912cd697770f96 /video/out
parent1d11db6596cc985050dec3b337e36b0939fa1966 (diff)
downloadmpv-3789e1bebf23ce1c64d8ef8d9961e6e405747c5d.tar.bz2
mpv-3789e1bebf23ce1c64d8ef8d9961e6e405747c5d.tar.xz
cocoa_common: fix a bug in window initialization error
We didn't bail out soon enough. Bug was introduced by 134f3e97.
Diffstat (limited to 'video/out')
-rw-r--r--video/out/cocoa_common.m4
1 files changed, 3 insertions, 1 deletions
diff --git a/video/out/cocoa_common.m b/video/out/cocoa_common.m
index e9873304c8..c977932513 100644
--- a/video/out/cocoa_common.m
+++ b/video/out/cocoa_common.m
@@ -462,8 +462,10 @@ int vo_cocoa_config_window(struct vo *vo, uint32_t d_width,
update_state_sizes(s, d_width, d_height);
if (!(s->window || s->glContext)) {
- if (create_window(vo, d_width, d_height, flags, gl3profile) < 0)
+ if (create_window(vo, d_width, d_height, flags, gl3profile) < 0) {
rv = -1;
+ return;
+ }
} else {
update_window(vo);
}