diff options
Diffstat (limited to 'video/out')
-rw-r--r-- | video/out/vo.c | 6 | ||||
-rw-r--r-- | video/out/vo_opengl_cb.c | 3 |
2 files changed, 5 insertions, 4 deletions
diff --git a/video/out/vo.c b/video/out/vo.c index c999138eee..b2aba3af7a 100644 --- a/video/out/vo.c +++ b/video/out/vo.c @@ -66,6 +66,9 @@ extern const struct vo_driver video_out_tct; const struct vo_driver *const video_out_drivers[] = { +#if HAVE_GL + &video_out_opengl_cb, +#endif #if HAVE_ANDROID &video_out_mediacodec_embed, #endif @@ -104,9 +107,6 @@ const struct vo_driver *const video_out_drivers[] = #if HAVE_ENCODING &video_out_lavc, #endif -#if HAVE_GL - &video_out_opengl_cb, -#endif NULL }; diff --git a/video/out/vo_opengl_cb.c b/video/out/vo_opengl_cb.c index 4be36118a0..40dcb035ca 100644 --- a/video/out/vo_opengl_cb.c +++ b/video/out/vo_opengl_cb.c @@ -554,7 +554,8 @@ static int preinit(struct vo *vo) struct vo_priv *p = vo->priv; p->ctx = vo->extra.opengl_cb_context; if (!p->ctx) { - MP_FATAL(vo, "No context set.\n"); + if (!vo->probing) + MP_FATAL(vo, "No context set.\n"); return -1; } |