[rhythmbox] treat audio/ogg as a synonym for application/ogg
- From: Jonathan Matthew <jmatthew src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rhythmbox] treat audio/ogg as a synonym for application/ogg
- Date: Tue, 17 Apr 2012 21:35:30 +0000 (UTC)
commit d8bbfc4cc35a3db6250d1c4d90bdfa118789482f
Author: Jonathan Matthew <jonathan d14n org>
Date: Wed Apr 18 07:34:56 2012 +1000
treat audio/ogg as a synonym for application/ogg
lib/rb-gst-media-types.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/lib/rb-gst-media-types.c b/lib/rb-gst-media-types.c
index c691a18..3a76e1b 100644
--- a/lib/rb-gst-media-types.c
+++ b/lib/rb-gst-media-types.c
@@ -160,7 +160,7 @@ rb_gst_media_type_to_extension (const char *media_type)
return NULL;
} else if (!strcmp (media_type, "audio/mpeg")) {
return "mp3";
- } else if (!strcmp (media_type, "audio/x-vorbis") || !strcmp (media_type, "application/ogg")) {
+ } else if (!strcmp (media_type, "audio/x-vorbis") || !strcmp (media_type, "application/ogg") || !strcmp (media_type, "audio/ogg")) {
return "ogg";
} else if (!strcmp (media_type, "audio/x-flac") || !strcmp (media_type, "audio/flac")) {
return "flac";
@@ -178,7 +178,7 @@ rb_gst_mime_type_to_media_type (const char *mime_type)
{
if (!strcmp (mime_type, "application/x-id3") || !strcmp (mime_type, "audio/mpeg")) {
return "audio/mpeg";
- } else if (!strcmp (mime_type, "application/ogg") || !strcmp (mime_type, "audio/x-vorbis")) {
+ } else if (!strcmp (mime_type, "application/ogg") || !strcmp (mime_type, "audio/x-vorbis") || !strcmp (mime_type, "audio/ogg")) {
return "audio/x-vorbis";
} else if (!strcmp (mime_type, "audio/flac")) {
return "audio/x-flac";
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]