aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/audio-inline
diff options
context:
space:
mode:
authorTor Lillqvist <tml@novell.com>2005-12-18 16:29:39 +0800
committerTor Lillqvist <tml@src.gnome.org>2005-12-18 16:29:39 +0800
commit095ee2463db06e42c17f7ad1ab8d6d4b8253c935 (patch)
tree6bedee56f6b60d8782c091361f7b754af9de5454 /plugins/audio-inline
parent0af822221fc4d4bdd241a709ad92a516bbf1364d (diff)
downloadgsoc2013-evolution-095ee2463db06e42c17f7ad1ab8d6d4b8253c935.tar
gsoc2013-evolution-095ee2463db06e42c17f7ad1ab8d6d4b8253c935.tar.gz
gsoc2013-evolution-095ee2463db06e42c17f7ad1ab8d6d4b8253c935.tar.bz2
gsoc2013-evolution-095ee2463db06e42c17f7ad1ab8d6d4b8253c935.tar.lz
gsoc2013-evolution-095ee2463db06e42c17f7ad1ab8d6d4b8253c935.tar.xz
gsoc2013-evolution-095ee2463db06e42c17f7ad1ab8d6d4b8253c935.tar.zst
gsoc2013-evolution-095ee2463db06e42c17f7ad1ab8d6d4b8253c935.zip
Use g_ascii_strcasecmp() instead of strcasecmp(), especially as we are
2005-12-18 Tor Lillqvist <tml@novell.com> * audio-inline.c: Use g_ascii_strcasecmp() instead of strcasecmp(), especially as we are comparing to plain ASCII strings. svn path=/trunk/; revision=30856
Diffstat (limited to 'plugins/audio-inline')
-rw-r--r--plugins/audio-inline/ChangeLog6
-rw-r--r--plugins/audio-inline/audio-inline.c16
2 files changed, 14 insertions, 8 deletions
diff --git a/plugins/audio-inline/ChangeLog b/plugins/audio-inline/ChangeLog
index ddb8a88182..c1d5f927f7 100644
--- a/plugins/audio-inline/ChangeLog
+++ b/plugins/audio-inline/ChangeLog
@@ -1,3 +1,9 @@
+2005-12-18 Tor Lillqvist <tml@novell.com>
+
+ * audio-inline.c: Use g_ascii_strcasecmp() instead of
+ strcasecmp(), especially as we are comparing to plain ASCII
+ strings.
+
2005-05-11 Not Zed <NotZed@Ximian.com>
* Makefile.am: add cleanfiles and built_sources.
diff --git a/plugins/audio-inline/audio-inline.c b/plugins/audio-inline/audio-inline.c
index 36c6cfed44..cbe8b03cc3 100644
--- a/plugins/audio-inline/audio-inline.c
+++ b/plugins/audio-inline/audio-inline.c
@@ -223,18 +223,18 @@ org_gnome_audio_inline_play_clicked (GtkWidget *button, EMFormatHTMLPObject *pob
type = camel_mime_part_get_content_type (po->part);
if (type) {
- if (!strcasecmp (type->type, "audio")) {
- if (!strcasecmp (type->subtype, "mpeg") || !strcasecmp (type->subtype, "x-mpeg")
- || !strcasecmp (type->subtype, "mpeg3") || !strcasecmp (type->subtype, "x-mpeg3")
- || !strcasecmp (type->subtype, "mp3") || !strcasecmp (type->subtype, "x-mp3")) {
+ if (!g_ascii_strcasecmp (type->type, "audio")) {
+ if (!g_ascii_strcasecmp (type->subtype, "mpeg") || !g_ascii_strcasecmp (type->subtype, "x-mpeg")
+ || !g_ascii_strcasecmp (type->subtype, "mpeg3") || !g_ascii_strcasecmp (type->subtype, "x-mpeg3")
+ || !g_ascii_strcasecmp (type->subtype, "mp3") || !g_ascii_strcasecmp (type->subtype, "x-mp3")) {
po->thread = org_gnome_audio_inline_gst_mpeg_thread (filesrc);
- } else if (!strcasecmp (type->subtype, "flac") || !strcasecmp (type->subtype, "x-flac")) {
+ } else if (!g_ascii_strcasecmp (type->subtype, "flac") || !g_ascii_strcasecmp (type->subtype, "x-flac")) {
po->thread = org_gnome_audio_inline_gst_flac_thread (filesrc);
- } else if (!strcasecmp (type->subtype, "mod") || !strcasecmp (type->subtype, "x-mod")) {
+ } else if (!g_ascii_strcasecmp (type->subtype, "mod") || !g_ascii_strcasecmp (type->subtype, "x-mod")) {
po->thread = org_gnome_audio_inline_gst_mod_thread (filesrc);
}
- } else if (!strcasecmp (type->type, "application")) {
- if (!strcasecmp (type->subtype, "ogg") || !strcasecmp (type->subtype, "x-ogg")) {
+ } else if (!g_ascii_strcasecmp (type->type, "application")) {
+ if (!g_ascii_strcasecmp (type->subtype, "ogg") || !g_ascii_strcasecmp (type->subtype, "x-ogg")) {
po->thread = org_gnome_audio_inline_gst_ogg_thread (filesrc);
}
}