Skip to content

Commit

Permalink
[mms_attachment] Tweaking SMIL detection in the absense of magic
Browse files Browse the repository at this point in the history
  • Loading branch information
monich committed Mar 5, 2014
1 parent 63e78d3 commit 1eae87d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mms-lib/src/mms_attachment.c
Expand Up @@ -240,14 +240,14 @@ mms_attachment_new(
detected_type = magic_file(magic, path);
}
}
#endif

/* Magic detects SMIL as text/html */
if ((!detected_type ||
g_str_has_prefix(detected_type, "text/")) &&
mms_file_is_smil(path)) {
detected_type = SMIL_CONTENT_TYPE;
}
#endif

if (!detected_type) {
MMS_WARN("No mime type for %s", path);
Expand Down

0 comments on commit 1eae87d

Please sign in to comment.