GNOME Bugzilla – Bug 556060
totem no longer able to play simple m3u playlists
Last modified: 2008-10-21 09:21:53 UTC
Please describe the problem: Totem is no longer able to play regular m3u files (files *without* an #EXTM3U header). I've tracked this bug down to totem_pl_parser_mime_type_from_data(). The m3u is first detected as audio/x-mpegurl (which is correct), then later on, it is detected as text/plain by g_content_type_guess() based on its content (which is correct too). The problem is that text/plain is then tested only against a list of dual_types, not including m3u (which is in a list called special_types), so totem_pl_parser_mime_type_from_data() fails, making the url "unhandled" by totem-plparser. It is then passed to gstreamer. Steps to reproduce: 1. enter a directory containing mp3 files 2. ls *.mp3 > foo.m3u 3. totem foo.m3u Actual results: ** Message: Error: This appears to be a text file gstdecodebin.c(1716): type_found (): /GstPlayBin:play/GstDecodeBin:decodebin0: decodebin cannot decode plain text files Expected results: totem playing files in that playlist Does this happen every time? 100% Other information: This has been reported on Ubuntu 8.10 (Intrepid) See https://bugs.launchpad.net/ubuntu/+source/totem-pl-parser/+bug/251669
2008-10-21 Bastien Nocera <hadess@hadess.net> * plparse/totem-pl-parser.c (totem_pl_parser_parse_internal): Fix M3U file parsing, the content-type detection is unreliable so ignore it if it doesn't bring us anything new (Closes: #556060)