[vlc-commits] V4L2: also replace commas with underscores (fix #4273)

Rémi Denis-Courmont git at videolan.org
Sun Oct 2 13:12:15 CEST 2011


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Oct  2 14:12:00 2011 +0300| [79b8da365f39bbcb5294fa25f6682bcb30187799] | committer: Rémi Denis-Courmont

V4L2: also replace commas with underscores (fix #4273)

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=79b8da365f39bbcb5294fa25f6682bcb30187799
---

 modules/access/v4l2/controls.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/access/v4l2/controls.c b/modules/access/v4l2/controls.c
index 864ff8d..f7af231 100644
--- a/modules/access/v4l2/controls.c
+++ b/modules/access/v4l2/controls.c
@@ -337,7 +337,7 @@ static vlc_v4l2_ctrl_t *ControlCreate (int fd,
         for (i = 0; query->name[i]; i++)
         {
             unsigned char c = query->name[i];
-            if (c == ' ')
+            if (c == ' ' || c == ',')
                 c = '_';
             if (c < 128)
                 c = tolower (c);



More information about the vlc-commits mailing list