[vlc-commits] caopengllayer: fail if no gl context exists
David Fuhrmann
git at videolan.org
Fri Mar 14 11:28:23 CET 2014
vlc | branch: master | David Fuhrmann <david.fuhrmann at googlemail.com> | Fri Mar 14 11:26:01 2014 +0100| [f74a7960714bf661127918883e644bb6b99242ce] | committer: David Fuhrmann
caopengllayer: fail if no gl context exists
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f74a7960714bf661127918883e644bb6b99242ce
---
modules/video_output/caopengllayer.m | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/modules/video_output/caopengllayer.m b/modules/video_output/caopengllayer.m
index a867bb6..8213bf0 100644
--- a/modules/video_output/caopengllayer.m
+++ b/modules/video_output/caopengllayer.m
@@ -164,7 +164,10 @@ static int Open (vlc_object_t *p_this)
if (!sys->cgLayer)
goto bailout;
- assert(sys->glContext);
+ if (!sys->glContext) {
+ msg_Err(vd, "Have no gl context");
+ goto bailout;
+ }
/* Initialize common OpenGL video display */
sys->gl.lock = OpenglLock;
More information about the vlc-commits
mailing list