[MPlayer-cvslog] r32047 - trunk/mplayer.c

reynaldo subversion at mplayerhq.hu
Sat Sep 4 21:24:34 CEST 2010


Author: reynaldo
Date: Sat Sep  4 21:24:34 2010
New Revision: 32047

Log:
Cosmetics

Modified:
   trunk/mplayer.c

Modified: trunk/mplayer.c
==============================================================================
--- trunk/mplayer.c	Sat Sep  4 21:09:23 2010	(r32046)
+++ trunk/mplayer.c	Sat Sep  4 21:24:34 2010	(r32047)
@@ -3223,14 +3223,16 @@ while (player_idle_mode && !filename) {
     }
 
     edl_loadfile();
-if (edl_output_filename) {
-    if (edl_fd) fclose(edl_fd);
-    if ((edl_fd = fopen(edl_output_filename, "w")) == NULL)
-    {
-        mp_msg(MSGT_CPLAYER, MSGL_ERR, MSGTR_EdlCantOpenForWrite,
-		filename_recode(edl_output_filename));
+
+    if (edl_output_filename) {
+        if (edl_fd)
+            fclose(edl_fd);
+        if ((edl_fd = fopen(edl_output_filename, "w")) == NULL)
+        {
+            mp_msg(MSGT_CPLAYER, MSGL_ERR, MSGTR_EdlCantOpenForWrite,
+                    filename_recode(edl_output_filename));
+        }
     }
-}
 
 //==================== Open VOB-Sub ============================
 
@@ -3994,13 +3996,14 @@ if(step_sec>0) {
   while( !brk_cmd && (cmd = mp_input_get_cmd(0,0,0)) != NULL) {
       brk_cmd = run_command(mpctx, cmd);
       if (cmd->id == MP_CMD_EDL_LOADFILE) {
-          if (edl_filename) free(edl_filename);
+          if (edl_filename)
+              free(edl_filename);
           edl_filename = strdup(cmd->args[0].v.s);
           if (edl_filename)
               edl_loadfile();
           else
               mp_msg(MSGT_CPLAYER, MSGL_ERR, MSGTR_EdlOutOfMemFile,
-                    cmd->args[0].v.s);
+                      cmd->args[0].v.s);
       }
       mp_cmd_free(cmd);
       if (brk_cmd == 2)


More information about the MPlayer-cvslog mailing list