diff gui/interface.c @ 36842:d8b2651bfeab

Remove unnecessary casts.
author ib
date Tue, 25 Feb 2014 16:12:33 +0000
parents c659d33157e3
children 1078b8dd7625
line wrap: on
line diff
--- a/gui/interface.c	Tue Feb 25 15:19:22 2014 +0000
+++ b/gui/interface.c	Tue Feb 25 16:12:33 2014 +0000
@@ -985,7 +985,7 @@
 
     case MPLAYER_SET_FONT_ENCODING:
         nfree(subtitle_font_encoding);
-        subtitle_font_encoding = gstrdup((char *)data);
+        subtitle_font_encoding = gstrdup(data);
         mplayer(MPLAYER_LOAD_FONT, 0, 0);
         break;
 
@@ -1024,7 +1024,7 @@
 
     case MPLAYER_SET_SUB_ENCODING:
         nfree(sub_cp);
-        sub_cp = gstrdup((char *)data);
+        sub_cp = gstrdup(data);
         break;
 
     case MPLAYER_SET_EXTRA_STEREO:
@@ -1055,22 +1055,22 @@
 
     case MPLAYER_SET_CONTRAST:
         if (guiInfo.sh_video)
-            set_video_colors(guiInfo.sh_video, "contrast", (int)value);
+            set_video_colors(guiInfo.sh_video, "contrast", value);
         break;
 
     case MPLAYER_SET_BRIGHTNESS:
         if (guiInfo.sh_video)
-            set_video_colors(guiInfo.sh_video, "brightness", (int)value);
+            set_video_colors(guiInfo.sh_video, "brightness", value);
         break;
 
     case MPLAYER_SET_HUE:
         if (guiInfo.sh_video)
-            set_video_colors(guiInfo.sh_video, "hue", (int)value);
+            set_video_colors(guiInfo.sh_video, "hue", value);
         break;
 
     case MPLAYER_SET_SATURATION:
         if (guiInfo.sh_video)
-            set_video_colors(guiInfo.sh_video, "saturation", (int)value);
+            set_video_colors(guiInfo.sh_video, "saturation", value);
         break;
 
     case MPLAYER_SET_EQUALIZER: