0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 20:03:10 +02:00

Print messages only after we are sure preinit will not fail anymore.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30510 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
reimar 2010-02-05 07:12:05 +00:00
parent 1cd3b3c5dd
commit 21208015e0

View File

@ -1159,11 +1159,6 @@ static int preinit(const char *arg)
"\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 @@ static int preinit(const char *arg)
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;