changeset 32634:a90b910df99c

Remove pointless case braces in get_metadata.
author cboesch
date Sun, 19 Dec 2010 14:09:21 +0000
parents 1fc26510b2cd
children b05c02525cb1
files mplayer.c
diffstat 1 files changed, 0 insertions(+), 14 deletions(-) [+]
line wrap: on
line diff
--- a/mplayer.c	Sun Dec 19 14:03:24 2010 +0000
+++ b/mplayer.c	Sun Dec 19 14:09:21 2010 +0000
@@ -453,12 +453,9 @@
   switch (type)
   {
   case META_NAME:
-  {
     return strdup(mp_basename(filename));
-  }
 
   case META_VIDEO_CODEC:
-  {
     if (sh_video->format == 0x10000001)
       return strdup("mpeg1");
     else if (sh_video->format == 0x10000002)
@@ -478,38 +475,27 @@
       return strdup(meta);
     }
     break;
-  }
 
   case META_VIDEO_BITRATE:
-  {
     snprintf(meta, sizeof(meta), "%d kbps", (int) (sh_video->i_bps * 8 / 1024));
     return strdup(meta);
-  }
 
   case META_VIDEO_RESOLUTION:
-  {
     snprintf(meta, sizeof(meta), "%d x %d", sh_video->disp_w, sh_video->disp_h);
     return strdup(meta);
-  }
 
   case META_AUDIO_CODEC:
-  {
     if (sh_audio->codec && sh_audio->codec->name)
       return strdup(sh_audio->codec->name);
     break;
-  }
 
   case META_AUDIO_BITRATE:
-  {
     snprintf(meta, sizeof(meta), "%d kbps", (int)(sh_audio->i_bps * 8 / 1000));
     return strdup(meta);
-  }
 
   case META_AUDIO_SAMPLES:
-  {
     snprintf(meta, sizeof(meta), "%d Hz, %d ch.", sh_audio->samplerate, sh_audio->channels);
     return strdup(meta);
-  }
 
   /* check for valid demuxer */
   case META_INFO_TITLE: