[farsight2/master] codec: Accept special arguments with any case

Olivier Crête olivier.crete at collabora.co.uk
Tue May 19 13:21:14 PDT 2009


---
 gst-libs/gst/farsight/fs-codec.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/gst-libs/gst/farsight/fs-codec.c b/gst-libs/gst/farsight/fs-codec.c
index e84ee0f..42ce08f 100644
--- a/gst-libs/gst/farsight/fs-codec.c
+++ b/gst-libs/gst/farsight/fs-codec.c
@@ -329,7 +329,7 @@ fs_codec_list_from_keyfile (const gchar *filename, GError **error)
     }
 
     for (j = 0; j < keys_count && keys[j]; j++) {
-      if (!strcmp ("clock-rate", keys[j])) {
+      if (!g_ascii_strcasecmp ("clock-rate", keys[j])) {
         codec->clock_rate = g_key_file_get_integer (keyfile, groups[i], keys[j],
             &gerror);
         if (gerror) {
@@ -337,7 +337,7 @@ fs_codec_list_from_keyfile (const gchar *filename, GError **error)
           goto keyerror;
         }
 
-      } else if (!strcmp ("id", keys[j])) {
+      } else if (!g_ascii_strcasecmp ("id", keys[j])) {
          codec->id = g_key_file_get_integer (keyfile, groups[i], keys[j],
             &gerror);
         if (gerror) {
@@ -348,7 +348,7 @@ fs_codec_list_from_keyfile (const gchar *filename, GError **error)
         if (codec->id < 0)
           codec->id = FS_CODEC_ID_DISABLE;
 
-      } else if (!strcmp ("channels", keys[j])) {
+      } else if (!g_ascii_strcasecmp ("channels", keys[j])) {
          codec->channels = g_key_file_get_integer (keyfile, groups[i], keys[j],
             &gerror);
         if (gerror) {
-- 
1.5.6.5




More information about the farsight-commits mailing list