After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 564098 - MS Word files are recognised as audio/mpeg and OSX's .DS_Store files as video/mpeg
MS Word files are recognised as audio/mpeg and OSX's .DS_Store files as video...
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-base
git master
Other All
: Normal minor
: 0.10.22
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2008-12-11 11:13 UTC by Guillaume Emont (guijemont)
Modified: 2008-12-11 12:32 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Proposed fix (1.49 KB, patch)
2008-12-11 11:16 UTC, Guillaume Emont (guijemont)
committed Details | Review

Description Guillaume Emont (guijemont) 2008-12-11 11:13:03 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
Comment 1 Guillaume Emont (guijemont) 2008-12-11 11:16:29 UTC
Created attachment 124411 [details] [review]
Proposed fix

This patch adds two simple typefinders in gsttypefindfunctions.c using TYPE_FIND_REGISTER_START_WITH.
Comment 2 Sebastian Dröge (slomo) 2008-12-11 12:32:47 UTC
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.