From 1043075a0d3a5b42b7780bb200a713cdb2c770bf Mon Sep 17 00:00:00 2001 From: ben Date: Thu, 10 Jan 2008 18:46:08 +0000 Subject: [PATCH] factorizes variable check git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25664 b3059339-0415-0410-9bf9-f77b7e298cf2 --- mplayer.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/mplayer.c b/mplayer.c index bcd1c61cbb..06ea4fed3a 100644 --- a/mplayer.c +++ b/mplayer.c @@ -2741,9 +2741,11 @@ play_next_file: 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