Commit aeb0c9d2 authored by Jonathan Matthew's avatar Jonathan Matthew Committed by Jonathan Matthew

patch by: Eric Shattow <lucent+code@gmail.com>

2008-09-14  Jonathan Matthew  <jonathan@d14n.org>

	patch by:  Eric Shattow  <lucent+code@gmail.com>

	* plugins/mtpdevice/rb-mtp-source.c: (mimetype_to_filetype),
	(filetype_to_mimetype):
	Map LIBMTP_FILETYPE_ASF <=> video/x-ms-asf.  Might not be right,
	but probably helps a bit.  Fixes #552105.

svn path=/trunk/; revision=5918
parent 26fd4631
2008-09-14 Jonathan Matthew <jonathan@d14n.org>
patch by: Eric Shattow <lucent+code@gmail.com>
* plugins/mtpdevice/rb-mtp-source.c: (mimetype_to_filetype),
(filetype_to_mimetype):
Map LIBMTP_FILETYPE_ASF <=> video/x-ms-asf. Might not be right,
but probably helps a bit. Fixes #552105.
2008-09-14 Jonathan Matthew <jonathan@d14n.org>
patch by: Eric Shattow <lucent+code@gmail.com>
......
......@@ -473,6 +473,8 @@ mimetype_to_filetype (const char *mimetype)
return LIBMTP_FILETYPE_MP4;
} else if (!strcmp (mimetype, "audio/x-ms-wma") || !strcmp (mimetype, "audio/x-ms-asf")) {
return LIBMTP_FILETYPE_WMA;
} else if (!strcmp (mimetype, "video/x-ms-asf")) {
return LIBMTP_FILETYPE_ASF;
} else {
rb_debug ("\"%s\" is not a supported mimetype", mimetype);
return LIBMTP_FILETYPE_UNKNOWN;
......@@ -494,6 +496,8 @@ filetype_to_mimetype (LIBMTP_filetype_t filetype)
return "audio/mp4";
} else if (filetype == LIBMTP_FILETYPE_WMV) {
return "audio/x-ms-wmv";
} else if (filetype == LIBMTP_FILETYPE_ASF) {
return "video/x-ms-asf";
} else {
return NULL;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment