[vlc-devel] Re: [PATCH] m3u playlist import and export, version 2

Daniel Stränger vlc at schmaller.de
Wed Aug 10 12:39:15 CEST 2005

I forgot to free psz_author in the first patch version.
This mail comes with the corrected patch.


>hi all!
>i've recognized that loading and saving a m3u playlist does not use the
>same EXTINF format.
>In 0.8.1 the playlist entry's extra information was saved as:
>   #EXTINF:time,artist,name
>Now, in 0.8.2 it's saved as:
>   #EXTINF:time,artist - name
>but during the load of a playlist and parsing the EXTINF-line the part 
>of the artist was neglected.
>i've corrected this misbehavior as follows:
>   * The delimiter character between time, artist and title is the comma!
>   * If the artist contains a comma, the comma is escaped by a 
>backslash during export
>   * of course the newly introduced escape charater "backslash" will 
>also be escaped
>   * in the Demux-function the artist *and* the title are parsed and 
>handled separatly
>   * the artist will be unescaped and set by vlc_input_item_AddInfo()
>the patch file comes as attachment and i hope you check it in to svn 
>tree after revision.
>i'd be glad to receive any feedback.
>Best regards,
>Daniel Straenger
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: vlc_m3u_playlist.patch
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20050810/04185cd6/attachment.ksh>

More information about the vlc-devel mailing list