Mercurial > mplayer.hg
comparison gui/interface.c @ 36842:d8b2651bfeab
Remove unnecessary casts.
author | ib |
---|---|
date | Tue, 25 Feb 2014 16:12:33 +0000 |
parents | c659d33157e3 |
children | 1078b8dd7625 |
comparison
equal
deleted
inserted
replaced
36841:c659d33157e3 | 36842:d8b2651bfeab |
---|---|
983 mplayer(MPLAYER_LOAD_FONT, 0, 0); | 983 mplayer(MPLAYER_LOAD_FONT, 0, 0); |
984 break; | 984 break; |
985 | 985 |
986 case MPLAYER_SET_FONT_ENCODING: | 986 case MPLAYER_SET_FONT_ENCODING: |
987 nfree(subtitle_font_encoding); | 987 nfree(subtitle_font_encoding); |
988 subtitle_font_encoding = gstrdup((char *)data); | 988 subtitle_font_encoding = gstrdup(data); |
989 mplayer(MPLAYER_LOAD_FONT, 0, 0); | 989 mplayer(MPLAYER_LOAD_FONT, 0, 0); |
990 break; | 990 break; |
991 | 991 |
992 case MPLAYER_SET_FONT_AUTOSCALE: | 992 case MPLAYER_SET_FONT_AUTOSCALE: |
993 subtitle_autoscale = (int)value; | 993 subtitle_autoscale = (int)value; |
1022 #endif | 1022 #endif |
1023 break; | 1023 break; |
1024 | 1024 |
1025 case MPLAYER_SET_SUB_ENCODING: | 1025 case MPLAYER_SET_SUB_ENCODING: |
1026 nfree(sub_cp); | 1026 nfree(sub_cp); |
1027 sub_cp = gstrdup((char *)data); | 1027 sub_cp = gstrdup(data); |
1028 break; | 1028 break; |
1029 | 1029 |
1030 case MPLAYER_SET_EXTRA_STEREO: | 1030 case MPLAYER_SET_EXTRA_STEREO: |
1031 gtkAOExtraStereoMul = value; | 1031 gtkAOExtraStereoMul = value; |
1032 afilter = mpctx_get_afilter(guiInfo.mpcontext); | 1032 afilter = mpctx_get_afilter(guiInfo.mpcontext); |
1053 | 1053 |
1054 /* set equalizers */ | 1054 /* set equalizers */ |
1055 | 1055 |
1056 case MPLAYER_SET_CONTRAST: | 1056 case MPLAYER_SET_CONTRAST: |
1057 if (guiInfo.sh_video) | 1057 if (guiInfo.sh_video) |
1058 set_video_colors(guiInfo.sh_video, "contrast", (int)value); | 1058 set_video_colors(guiInfo.sh_video, "contrast", value); |
1059 break; | 1059 break; |
1060 | 1060 |
1061 case MPLAYER_SET_BRIGHTNESS: | 1061 case MPLAYER_SET_BRIGHTNESS: |
1062 if (guiInfo.sh_video) | 1062 if (guiInfo.sh_video) |
1063 set_video_colors(guiInfo.sh_video, "brightness", (int)value); | 1063 set_video_colors(guiInfo.sh_video, "brightness", value); |
1064 break; | 1064 break; |
1065 | 1065 |
1066 case MPLAYER_SET_HUE: | 1066 case MPLAYER_SET_HUE: |
1067 if (guiInfo.sh_video) | 1067 if (guiInfo.sh_video) |
1068 set_video_colors(guiInfo.sh_video, "hue", (int)value); | 1068 set_video_colors(guiInfo.sh_video, "hue", value); |
1069 break; | 1069 break; |
1070 | 1070 |
1071 case MPLAYER_SET_SATURATION: | 1071 case MPLAYER_SET_SATURATION: |
1072 if (guiInfo.sh_video) | 1072 if (guiInfo.sh_video) |
1073 set_video_colors(guiInfo.sh_video, "saturation", (int)value); | 1073 set_video_colors(guiInfo.sh_video, "saturation", value); |
1074 break; | 1074 break; |
1075 | 1075 |
1076 case MPLAYER_SET_EQUALIZER: | 1076 case MPLAYER_SET_EQUALIZER: |
1077 { | 1077 { |
1078 af_control_ext_t tmp; | 1078 af_control_ext_t tmp; |