summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-07-10 08:26:44 +0200
committerwm4 <wm4@nowhere>2014-07-10 08:27:15 +0200
commite1f2540ede81d79423f51dcd9de2104ab0042132 (patch)
tree113c11e29ef15a45459337ab1fec246de6d8a40b
parent1a1e631ccd561afdea31e2fb2f4982b3fdc81432 (diff)
downloadmpv-e1f2540ede81d79423f51dcd9de2104ab0042132.tar.bz2
mpv-e1f2540ede81d79423f51dcd9de2104ab0042132.tar.xz
video/out: use strcmp() instead of strcasecmp() for equalizers
This makes it more consistent with the more important VOs.
-rw-r--r--video/out/vo_sdl.c8
-rw-r--r--video/out/vo_vaapi.c8
-rw-r--r--video/out/vo_xv.c16
3 files changed, 16 insertions, 16 deletions
diff --git a/video/out/vo_sdl.c b/video/out/vo_sdl.c
index 64d0916cc2..6fe09d2691 100644
--- a/video/out/vo_sdl.c
+++ b/video/out/vo_sdl.c
@@ -952,9 +952,9 @@ static int set_eq(struct vo *vo, const char *name, int value)
{
struct priv *vc = vo->priv;
- if (!strcasecmp(name, "brightness"))
+ if (!strcmp(name, "brightness"))
vc->brightness = value;
- else if (!strcasecmp(name, "contrast"))
+ else if (!strcmp(name, "contrast"))
vc->contrast = value;
else
return VO_NOTIMPL;
@@ -968,9 +968,9 @@ static int get_eq(struct vo *vo, const char *name, int *value)
{
struct priv *vc = vo->priv;
- if (!strcasecmp(name, "brightness"))
+ if (!strcmp(name, "brightness"))
*value = vc->brightness;
- else if (!strcasecmp(name, "contrast"))
+ else if (!strcmp(name, "contrast"))
*value = vc->contrast;
else
return VO_NOTIMPL;
diff --git a/video/out/vo_vaapi.c b/video/out/vo_vaapi.c
index 16218dd98c..7e32563395 100644
--- a/video/out/vo_vaapi.c
+++ b/video/out/vo_vaapi.c
@@ -442,13 +442,13 @@ static void draw_osd(struct vo *vo)
static int get_displayattribtype(const char *name)
{
- if (!strcasecmp(name, "brightness"))
+ if (!strcmp(name, "brightness"))
return VADisplayAttribBrightness;
- else if (!strcasecmp(name, "contrast"))
+ else if (!strcmp(name, "contrast"))
return VADisplayAttribContrast;
- else if (!strcasecmp(name, "saturation"))
+ else if (!strcmp(name, "saturation"))
return VADisplayAttribSaturation;
- else if (!strcasecmp(name, "hue"))
+ else if (!strcmp(name, "hue"))
return VADisplayAttribHue;
return -1;
}
diff --git a/video/out/vo_xv.c b/video/out/vo_xv.c
index dcc9257003..f2932e89b1 100644
--- a/video/out/vo_xv.c
+++ b/video/out/vo_xv.c
@@ -140,29 +140,29 @@ static int xv_find_atom(struct vo *vo, uint32_t xv_port, const char *name,
then trigger it if it's ok so that the other values are at default upon query */
if (atom != None) {
if (!strcmp(attributes[i].name, "XV_BRIGHTNESS") &&
- (!strcasecmp(name, "brightness")))
+ (!strcmp(name, "brightness")))
break;
else if (!strcmp(attributes[i].name, "XV_CONTRAST") &&
- (!strcasecmp(name, "contrast")))
+ (!strcmp(name, "contrast")))
break;
else if (!strcmp(attributes[i].name, "XV_SATURATION") &&
- (!strcasecmp(name, "saturation")))
+ (!strcmp(name, "saturation")))
break;
else if (!strcmp(attributes[i].name, "XV_HUE") &&
- (!strcasecmp(name, "hue")))
+ (!strcmp(name, "hue")))
break;
if (!strcmp(attributes[i].name, "XV_RED_INTENSITY") &&
- (!strcasecmp(name, "red_intensity")))
+ (!strcmp(name, "red_intensity")))
break;
else if (!strcmp(attributes[i].name, "XV_GREEN_INTENSITY")
- && (!strcasecmp(name, "green_intensity")))
+ && (!strcmp(name, "green_intensity")))
break;
else if (!strcmp(attributes[i].name, "XV_BLUE_INTENSITY")
- && (!strcasecmp(name, "blue_intensity")))
+ && (!strcmp(name, "blue_intensity")))
break;
else if ((!strcmp(attributes[i].name, "XV_ITURBT_709") //NVIDIA
|| !strcmp(attributes[i].name, "XV_COLORSPACE")) //ATI
- && (!strcasecmp(name, "bt_709")))
+ && (!strcmp(name, "bt_709")))
break;
atom = None;
continue;