changeset 25636:3b0fed65048d

factorizes variable check
author ben
date Thu, 10 Jan 2008 18:46:08 +0000
parents 25f6dca4df74
children 7c383969fb67
files mplayer.c
diffstat 1 files changed, 5 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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