# HG changeset patch # User reimar # Date 1265353925 0 # Node ID c43a5f466e1ee0a686b3ed8ba644875dacd810a9 # Parent 9b7b4eeea093fa6ef2a274862183c9e73b3a4b98 Print messages only after we are sure preinit will not fail anymore. diff -r 9b7b4eeea093 -r c43a5f466e1e libvo/vo_gl.c --- 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;