GNOME Bugzilla – Bug 564098
MS Word files are recognised as audio/mpeg and OSX's .DS_Store files as video/mpeg
Last modified: 2008-12-11 12:32:47 UTC
Typefinders for these types of files should be added so that there type is correctly identified by gstreamer. Other information: What happens now: $ gst-typefind word97.doc word97.doc - audio/mpeg, mpegversion=(int)1, layer=(int)1 $ gst-typefind .DS_Store .DS_Store - video/mpeg, systemstream=(boolean)false, mpegversion=(int)1 What should happen: $ gst-typefind .DS_Store .DS_Store - application/octet-stream $ gst-typefind word97.doc word97.doc - application/msword Output of the "file" command on these files: $ file -i word97.doc .DS_Store word97.doc: \012- application/msword .DS_Store: application/octet-stream
Created attachment 124411 [details] [review] Proposed fix This patch adds two simple typefinders in gsttypefindfunctions.c using TYPE_FIND_REGISTER_START_WITH.
2008-12-11 Sebastian Dröge <sebastian.droege@collabora.co.uk> Patch by: Guillaume Emont <guillaume at fluendo dot com> * gst/typefind/gsttypefindfunctions.c: (plugin_init): Add typefinders for MS Word files and OS X .DS_Store files to prevent them to be recognized as MPEG files. Fixes bug #564098.