# HG changeset patch # User ben # Date 1199990768 0 # Node ID 3b0fed65048d303d80a5cc5726994331c688c24b # Parent 25f6dca4df7406b1152c6dd199f475e862eaeaea factorizes variable check diff -r 25f6dca4df74 -r 3b0fed65048d mplayer.c --- a/mplayer.c Thu Jan 10 18:45:08 2008 +0000 +++ b/mplayer.c Thu Jan 10 18:46:08 2008 +0000 @@ -2741,9 +2741,11 @@ mpctx->global_sub_size = 0; { int i; for (i = 0; i < SUB_SOURCES; i++) mpctx->global_sub_indices[i] = -1; } - if (filename) load_per_protocol_config (mconfig, filename); - if (filename) load_per_extension_config (mconfig, filename); - if (filename) load_per_file_config (mconfig, filename); + if (filename) { + load_per_protocol_config (mconfig, filename); + load_per_extension_config (mconfig, filename); + load_per_file_config (mconfig, filename); + } // We must enable getch2 here to be able to interrupt network connection // or cache filling