Bug 707043 - Audio attachment not shown correctly

This commit is contained in:
David Woodhouse
2013-08-31 10:41:02 -04:00
committed by Matthew Barnes
parent 9a2e1b509a
commit 58a18a14c1
2 changed files with 7 additions and 1 deletions

View File

@ -69,6 +69,8 @@ static const gchar *formatter_mime_types[] = {
"audio/microsoft-wav",
"audio/x-wma",
"audio/x-ms-wma",
"audio/ogg",
"audio/x-vorbis+ogg",
"application/ogg",
"application/x-ogg",
NULL
@ -184,7 +186,7 @@ play_clicked (GtkWidget *button,
/* FIXME this is ugly, we should stream this directly to gstreamer */
part->filename = e_mktemp ("org-gnome-audio-file-XXXXXX");
d (printf ("audio formatter: write to temp file %s\n", po->filename));
d (printf ("audio formatter: write to temp file %s\n", part->filename));
stream = camel_stream_fs_new_with_name (
part->filename, O_RDWR | O_CREAT | O_TRUNC, 0600, NULL);

View File

@ -69,6 +69,8 @@ static const gchar *parser_mime_types[] = {
"audio/microsoft-wav",
"audio/x-wma",
"audio/x-ms-wma",
"audio/ogg",
"audio/x-vorbis+ogg",
"application/ogg",
"application/x-ogg",
NULL
@ -89,6 +91,8 @@ mail_parser_audio_parse (EMailParserExtension *extension,
len = part_id->len;
g_string_append (part_id, ".org-gnome-audio-button-panel");
camel_mime_part_set_disposition (part, "inline");
d (printf ("audio formatter: format classid %s\n", part_id->str));
mail_part = e_mail_part_audio_new (part, part_id->str);