Ticket #1689 (new defect)

Opened 10 years ago

Last modified 10 years ago

openmoko-mediaplayer generates invalid xspf playlists

Reported by: hedora Owned by: openmoko-devel
Priority: normal Milestone:
Component: unknown Version:
Severity: normal Keywords:
Cc: Blocked By:
Blocking: Estimated Completion (week):
HasPatchForReview: PatchReviewResult:
Reproducible:

Description

Openmoko generated the attached xml tag when I told it to import a big directory. It isn't valid UTF-8, which prevents mediaplayer from opening the playlist after creating it. The string likely contains some garbage characters that look cool in some encoding scheme; I don't know if this bug would be triggered can be triggered by titles written in a real language.

(Also, the error message from mediaplayer could be improved; it simply says "could not open playlist", when it should say "Corrupt playlist file. XML error: Invalid UTF-8 Encoding", or something like that.)

Attachments

big-excerpt.xspf (465 bytes) - added by hedora 10 years ago.
A minimal playlist edited down from invalid one generated by mediaplayer.

Change History

Changed 10 years ago by hedora

A minimal playlist edited down from invalid one generated by mediaplayer.

comment:1 Changed 10 years ago by hedora

It looks like the invalid string (the "title" field) in the .xspf is copied directly from the filename. The bogus character is \372.

Note: See TracTickets for help on using tickets.