Page 1 of 1

Segmentation fault with (null) input

Posted: 25 Jun 2009 01:48
by Snjezana
When the xspf playlist example at http://wiki.videolan.org/XSPF is opened vlc crashes with a segmentation fault.
This occurs because of the dots instead of a correct location tag in the example but a void input should not generate a segmentation fault.

Re: Segmentation fault with (null) input

Posted: 25 Jun 2009 20:26
by The DJ

Re: Segmentation fault with (null) input

Posted: 26 Jun 2009 00:33
by Snjezana
Thanks for fixing this big issue.

But, there are a few smaller ones still left.

1. In the wiki example one can read that the playlist will look like that:

Code: Select all

Playlist `- Node 1 |- Track 1 |- Track 2 `- Node 2 |- Track 3 `- Track 4
In real the example playlist shows up like this:

Code: Select all

Playlist |- Track 1 |- Track 2 |- Track 3 `- Track 4
The xspf parser ignores the grouping of tracks.

2. The track id number given in the playlist is not shown in the dialog box when right clicking on the track an choosing information. Title and location are shown correctly.

Re: Segmentation fault with (null) input

Posted: 26 Jun 2009 02:16
by The DJ
1: For me it works correctly. I have the Node's in my playlist
2: I think you are talking about the vlc:id. This is not a track ID, it's the method used to couple the tracks and the nodes.

Re: Segmentation fault with (null) input

Posted: 26 Jun 2009 03:37
by Snjezana
1: For me it works correctly. I have the Node's in my playlist
Oh, how do you generate them?
When I use this example (like in the wiki):

Code: Select all

<?xml version="1.0" encoding="UTF-8"?> <playlist version="1" xmlns="http://xspf.org/ns/0/" xmlns:vlc="http://www.videolan.org/vlc/playlist/ns/0/"> <title>Playlist</title> <location>D:/media/example.xspf</location> <trackList> <track> <title>Track 1</title> <location>vlc://nop</location> <extension application="http://www.videolan.org/vlc/playlist/0"> <vlc:id>0</vlc:id> </extension> </track> <track> <title>Track 2</title> <location>vlc://nop</location> <extension application="http://www.videolan.org/vlc/playlist/0"> <vlc:id>1</vlc:id> </extension> </track> <track> <title>Track 3</title> <location>vlc://nop</location> <extension application="http://www.videolan.org/vlc/playlist/0"> <vlc:id>2</vlc:id> </extension> </track> <track> <title>Track 4</title> <location>vlc://nop</location> <extension application="http://www.videolan.org/vlc/playlist/0"> <vlc:id>3</vlc:id> <vlc:option>my-option=42</vlc:option> </extension> </track> </trackList> <extension application="http://www.videolan.org/vlc/playlist/0"> <vlc:node title="Node 1"> <vlc:item tid="0" /> <vlc:item tid="1" /> <vlc:node title="Node 2"> <vlc:item tid="2" /> <vlc:item tid="3" /> </vlc:node> </vlc:node> </extension> </playlist>
I get that playlist:
Image

I'm using the actual rpm (1.0.0-rc4-1.3) for openSUSE 11.1
2: I think you are talking about the vlc:id. This is not a track ID, it's the method used to couple the tracks and the nodes.
Ok, I thought the tid value means track id.