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

cboesch subversion at mplayerhq.hu
Sat Dec 25 17:58:00 CET 2010


Author: cboesch
Date: Sat Dec 25 17:58:00 2010
New Revision: 32734

Log:
Remove pointless case braces.

Modified:
   trunk/mplayer.c

Modified: trunk/mplayer.c
==============================================================================
--- trunk/mplayer.c	Sat Dec 25 00:15:49 2010	(r32733)
+++ trunk/mplayer.c	Sat Dec 25 17:58:00 2010	(r32734)
@@ -391,21 +391,17 @@ static int is_valid_metadata_type (metad
   case META_VIDEO_CODEC:
   case META_VIDEO_BITRATE:
   case META_VIDEO_RESOLUTION:
-  {
     if (!mpctx->sh_video)
       return 0;
     break;
-  }
 
   /* check for valid audio stream */
   case META_AUDIO_CODEC:
   case META_AUDIO_BITRATE:
   case META_AUDIO_SAMPLES:
-  {
     if (!mpctx->sh_audio)
       return 0;
     break;
-  }
 
   /* check for valid demuxer */
   case META_INFO_TITLE:
@@ -415,11 +411,9 @@ static int is_valid_metadata_type (metad
   case META_INFO_COMMENT:
   case META_INFO_TRACK:
   case META_INFO_GENRE:
-  {
     if (!mpctx->demuxer)
       return 0;
     break;
-  }
 
   default:
     break;
@@ -991,16 +985,16 @@ static int libmpdemux_was_interrupted(in
        switch(cmd->id) {
        case MP_CMD_QUIT:
 	 exit_player_with_rc(EXIT_QUIT, (cmd->nargs > 0)? cmd->args[0].v.i : 0);
-       case MP_CMD_PLAY_TREE_STEP: {
+       case MP_CMD_PLAY_TREE_STEP:
 	 eof = (cmd->args[0].v.i > 0) ? PT_NEXT_ENTRY : PT_PREV_ENTRY;
 	 mpctx->play_tree_step = (cmd->args[0].v.i == 0) ? 1 : cmd->args[0].v.i;
-       } break;
-       case MP_CMD_PLAY_TREE_UP_STEP: {
+         break;
+       case MP_CMD_PLAY_TREE_UP_STEP:
 	 eof = (cmd->args[0].v.i > 0) ? PT_UP_NEXT : PT_UP_PREV;
-       } break;
-       case MP_CMD_PLAY_ALT_SRC_STEP: {
+         break;
+       case MP_CMD_PLAY_ALT_SRC_STEP:
 	 eof = (cmd->args[0].v.i > 0) ?  PT_NEXT_SRC : PT_PREV_SRC;
-       } break;
+         break;
        }
        mp_cmd_free(cmd);
   }


More information about the MPlayer-cvslog mailing list