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 556060 - totem no longer able to play simple m3u playlists
totem no longer able to play simple m3u playlists
Status: RESOLVED FIXED
Product: totem-pl-parser
Classification: Core
Component: General
2.24.x
Other All
: Normal normal
: ---
Assigned To: totem-pl-parser-maint
totem-pl-parser-maint
Depends on:
Blocks:
 
 
Reported: 2008-10-12 21:18 UTC by Fabien Tassin
Modified: 2008-10-21 09:21 UTC
See Also:
GNOME target: ---
GNOME version: 2.23/2.24



Description Fabien Tassin 2008-10-12 21:18:54 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
Comment 1 Bastien Nocera 2008-10-21 09:21:53 UTC
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)