Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
67eea3ed
Commit
67eea3ed
authored
May 20, 2007
by
Yoann Peronneau
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* xspf.c: initializes identifier to 0 and free pp_tracklist
parent
6da67eef
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
8 deletions
+9
-8
modules/demux/playlist/xspf.c
modules/demux/playlist/xspf.c
+9
-8
No files found.
modules/demux/playlist/xspf.c
View file @
67eea3ed
...
@@ -60,7 +60,8 @@ int E_(Import_xspf)( vlc_object_t *p_this )
...
@@ -60,7 +60,8 @@ int E_(Import_xspf)( vlc_object_t *p_this )
void
E_
(
Close_xspf
)(
vlc_object_t
*
p_this
)
void
E_
(
Close_xspf
)(
vlc_object_t
*
p_this
)
{
{
demux_t
*
p_demux
=
(
demux_t
*
)
p_this
;
demux_t
*
p_demux
=
(
demux_t
*
)
p_this
;
FREENULL
(
p_demux
->
p_sys
->
psz_base
);
FREENULL
(
p_demux
->
p_sys
->
pp_tracklist
);
FREENULL
(
p_demux
->
p_sys
->
psz_base
);
free
(
p_demux
->
p_sys
);
free
(
p_demux
->
p_sys
);
}
}
...
@@ -77,7 +78,7 @@ int Demux( demux_t *p_demux )
...
@@ -77,7 +78,7 @@ int Demux( demux_t *p_demux )
p_demux
->
p_sys
->
p_item_in_category
=
p_item_in_category
;
p_demux
->
p_sys
->
p_item_in_category
=
p_item_in_category
;
p_demux
->
p_sys
->
pp_tracklist
=
NULL
;
p_demux
->
p_sys
->
pp_tracklist
=
NULL
;
p_demux
->
p_sys
->
i_tracklist_entries
=
0
;
p_demux
->
p_sys
->
i_tracklist_entries
=
0
;
p_demux
->
p_sys
->
i_identifier
=
-
1
;
p_demux
->
p_sys
->
i_identifier
=
0
;
p_demux
->
p_sys
->
psz_base
=
NULL
;
p_demux
->
p_sys
->
psz_base
=
NULL
;
/* create new xml parser from stream */
/* create new xml parser from stream */
...
@@ -152,7 +153,7 @@ static vlc_bool_t parse_playlist_node COMPLEX_INTERFACE
...
@@ -152,7 +153,7 @@ static vlc_bool_t parse_playlist_node COMPLEX_INTERFACE
xml_elem_hnd_t
pl_elements
[]
=
xml_elem_hnd_t
pl_elements
[]
=
{
{
"title"
,
SIMPLE_CONTENT
,
{.
smpl
=
set_item_info
}
},
{
{
"title"
,
SIMPLE_CONTENT
,
{.
smpl
=
set_item_info
}
},
{
"creator"
,
SIMPLE_CONTENT
,
{.
smpl
=
set_item_info
}
},
{
"creator"
,
SIMPLE_CONTENT
,
{.
smpl
=
set_item_info
}
},
{
"annotation"
,
SIMPLE_CONTENT
,
{
NULL
}
},
{
"annotation"
,
SIMPLE_CONTENT
,
{
.
smpl
=
set_item_info
}
},
{
"info"
,
SIMPLE_CONTENT
,
{
NULL
}
},
{
"info"
,
SIMPLE_CONTENT
,
{
NULL
}
},
{
"location"
,
SIMPLE_CONTENT
,
{
NULL
}
},
{
"location"
,
SIMPLE_CONTENT
,
{
NULL
}
},
{
"identifier"
,
SIMPLE_CONTENT
,
{
NULL
}
},
{
"identifier"
,
SIMPLE_CONTENT
,
{
NULL
}
},
...
@@ -385,7 +386,7 @@ static vlc_bool_t parse_track_node COMPLEX_INTERFACE
...
@@ -385,7 +386,7 @@ static vlc_bool_t parse_track_node COMPLEX_INTERFACE
{
"identifier"
,
SIMPLE_CONTENT
,
{
NULL
}
},
{
"identifier"
,
SIMPLE_CONTENT
,
{
NULL
}
},
{
"title"
,
SIMPLE_CONTENT
,
{.
smpl
=
set_item_info
}
},
{
"title"
,
SIMPLE_CONTENT
,
{.
smpl
=
set_item_info
}
},
{
"creator"
,
SIMPLE_CONTENT
,
{.
smpl
=
set_item_info
}
},
{
"creator"
,
SIMPLE_CONTENT
,
{.
smpl
=
set_item_info
}
},
{
"annotation"
,
SIMPLE_CONTENT
,
{
NULL
}
},
{
"annotation"
,
SIMPLE_CONTENT
,
{
.
smpl
=
set_item_info
}
},
{
"info"
,
SIMPLE_CONTENT
,
{
NULL
}
},
{
"info"
,
SIMPLE_CONTENT
,
{
NULL
}
},
{
"image"
,
SIMPLE_CONTENT
,
{
NULL
}
},
{
"image"
,
SIMPLE_CONTENT
,
{
NULL
}
},
{
"album"
,
SIMPLE_CONTENT
,
{.
smpl
=
set_item_info
}
},
{
"album"
,
SIMPLE_CONTENT
,
{.
smpl
=
set_item_info
}
},
...
@@ -529,18 +530,18 @@ static vlc_bool_t parse_track_node COMPLEX_INTERFACE
...
@@ -529,18 +530,18 @@ static vlc_bool_t parse_track_node COMPLEX_INTERFACE
if
(
psz_uri
)
if
(
psz_uri
)
{
{
if
(
p_demux
->
p_sys
->
psz_base
&&
if
(
p_demux
->
p_sys
->
psz_base
&&
!
strstr
(
psz_uri
,
"://"
)
)
!
strstr
(
psz_uri
,
"://"
)
)
{
{
char
*
psz_tmp
=
malloc
(
char
*
psz_tmp
=
malloc
(
strlen
(
p_demux
->
p_sys
->
psz_base
)
+
strlen
(
p_demux
->
p_sys
->
psz_base
)
+
strlen
(
psz_uri
)
+
1
);
strlen
(
psz_uri
)
+
1
);
if
(
!
psz_tmp
)
if
(
!
psz_tmp
)
{
{
msg_Err
(
p_demux
,
"out of memory"
);
msg_Err
(
p_demux
,
"out of memory"
);
return
VLC_FALSE
;
return
VLC_FALSE
;
}
}
sprintf
(
psz_tmp
,
"%s%s"
,
sprintf
(
psz_tmp
,
"%s%s"
,
p_demux
->
p_sys
->
psz_base
,
psz_uri
);
p_demux
->
p_sys
->
psz_base
,
psz_uri
);
free
(
psz_uri
);
free
(
psz_uri
);
psz_uri
=
psz_tmp
;
psz_uri
=
psz_tmp
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment