diff options
author | Stefano Pigozzi <stefano.pigozzi@gmail.com> | 2013-05-29 22:30:05 +0200 |
---|---|---|
committer | Stefano Pigozzi <stefano.pigozzi@gmail.com> | 2013-05-30 23:02:56 +0200 |
commit | 3789e1bebf23ce1c64d8ef8d9961e6e405747c5d (patch) | |
tree | acafb2e26e9a9fea1ac6fcc591912cd697770f96 /video/out | |
parent | 1d11db6596cc985050dec3b337e36b0939fa1966 (diff) |
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.m | 4 |
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); } |