changeset 30468:c43a5f466e1e

Print messages only after we are sure preinit will not fail anymore.
author reimar
date Fri, 05 Feb 2010 07:12:05 +0000
parents 9b7b4eeea093
children 6dd1ae2298f3
files libvo/vo_gl.c
diffstat 1 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vo_gl.c	Thu Feb 04 22:46:45 2010 +0000
+++ b/libvo/vo_gl.c	Fri Feb 05 07:12:05 2010 +0000
@@ -1159,11 +1159,6 @@
               "\n" );
       return -1;
     }
-    if (many_fmts)
-      mp_msg(MSGT_VO, MSGL_INFO, "[gl] using extended formats. "
-               "Use -vo gl:nomanyfmts if playback fails.\n");
-    mp_msg(MSGT_VO, MSGL_V, "[gl] Using %d as slice height "
-             "(0 means image height).\n", slice_height);
     if (!init_mpglcontext(&glctx, gltype))
       goto err_out;
     if (use_yuv == -1) {
@@ -1173,6 +1168,11 @@
         goto err_out;
       autodetectGlExtensions();
     }
+    if (many_fmts)
+      mp_msg(MSGT_VO, MSGL_INFO, "[gl] using extended formats. "
+               "Use -vo gl:nomanyfmts if playback fails.\n");
+    mp_msg(MSGT_VO, MSGL_V, "[gl] Using %d as slice height "
+             "(0 means image height).\n", slice_height);
 
     return 0;