From e1f2540ede81d79423f51dcd9de2104ab0042132 Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 10 Jul 2014 08:26:44 +0200 Subject: video/out: use strcmp() instead of strcasecmp() for equalizers This makes it more consistent with the more important VOs. --- video/out/vo_sdl.c | 8 ++++---- video/out/vo_vaapi.c | 8 ++++---- video/out/vo_xv.c | 16 ++++++++-------- 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; -- cgit v1.2.3