typefinding: mis-detects true type font file as mp3
Submitted by gno..@..il.com
Link to original bug (#732923)
Description
Created attachment 280191
Rhythmbox window showing TTF files as valid audio tracks.
TTF font file is reported as "audio/mpeg" as shown below:
sid@unstable:~/work/gstreamer$ gst-typefind-1.0 /usr/share/fonts/truetype/fonts-japanese-gothic.ttf
/usr/share/fonts/truetype/fonts-japanese-gothic.ttf - audio/mpeg, mpegversion=(int)1, layer=(int)1, parsed=(boolean)false
GstDiscoverer library also returned "audio/mpeg"
More information on the file:
sid@unstable:~$ ls -l /usr/share/fonts/truetype/fonts-japanese-gothic.ttf
lrwxrwxrwx 1 root root 43 Jul 7 13:11 /usr/share/fonts/truetype/fonts-japanese-gothic.ttf -> /etc/alternatives/fonts-japanese-gothic.ttf
sid@unstable:~$ ls -l /etc/alternatives/fonts-japanese-gothic.ttf
lrwxrwxrwx 1 root root 53 Jul 7 13:11 /etc/alternatives/fonts-japanese-gothic.ttf -> /usr/share/fonts/opentype/ipaexfont-gothic/ipaexg.ttf
sid@unstable:~$ dpkg -S /usr/share/fonts/opentype/ipaexfont-gothic/ipaexg.ttf
fonts-ipaexfont-gothic: /usr/share/fonts/opentype/ipaexfont-gothic/ipaexg.ttf
Due to this, rhythmbox imports incorrect files ( refer attachment )
Attachment 280191, "Rhythmbox window showing TTF files as valid audio tracks.":