To correct the preview of OGG Vorbis files, I added "application/ogg" in the icon_container_preview_callback function. I've also moved application/ogg before application/x-ogg in play_file as the official RFC3534 will be matched first. -- Alan. "One must never be purposelessnessnesslessness."
diff -ur nautilus-old/src/file-manager/fm-icon-view.c nautilus/src/file-manager/fm-icon-view.c --- nautilus-old/src/file-manager/fm-icon-view.c 2004-01-09 09:45:10.000000000 +0000 +++ nautilus/src/file-manager/fm-icon-view.c 2004-01-30 17:01:55.000000000 +0000 @@ -1798,8 +1798,8 @@ file_uri = nautilus_file_get_uri (file); mime_type = nautilus_file_get_mime_type (file); is_mp3 = eel_strcasecmp (mime_type, "audio/mpeg") == 0; - is_ogg = eel_strcasecmp (mime_type, "application/x-ogg") == 0 || - eel_strcasecmp (mime_type, "application/ogg") == 0; + is_ogg = eel_strcasecmp (mime_type, "application/ogg") == 0 || + eel_strcasecmp (mime_type, "application/x-ogg") == 0; mp3_pid = fork (); if (mp3_pid == (pid_t) 0) { @@ -1970,6 +1970,7 @@ mime_type = nautilus_file_get_mime_type (file); if ((eel_istr_has_prefix (mime_type, "audio/") + || eel_istr_has_prefix (mime_type, "application/ogg") || eel_istr_has_prefix (mime_type, "application/x-ogg")) && eel_strcasecmp (mime_type, "audio/x-pn-realaudio") != 0 && eel_strcasecmp (mime_type, "audio/x-mpegurl") != 0
Attachment:
signature.asc
Description: This is a digitally signed message part