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
35976188
Commit
35976188
authored
Jun 14, 2008
by
Pierre d'Herbemont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xspf: Remove references to the playlist.
parent
89d24455
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
16 deletions
+10
-16
modules/demux/playlist/xspf.c
modules/demux/playlist/xspf.c
+10
-15
modules/demux/playlist/xspf.h
modules/demux/playlist/xspf.h
+0
-1
No files found.
modules/demux/playlist/xspf.c
View file @
35976188
...
...
@@ -33,15 +33,14 @@
#include <vlc_common.h>
#include <vlc_demux.h>
#include "playlist.h"
#include "vlc_xml.h"
#include "vlc_strings.h"
#include "vlc_url.h"
#include <vlc_xml.h>
#include <vlc_strings.h>
#include <vlc_url.h>
#include "xspf.h"
#include "playlist.h"
struct
demux_sys_t
{
playlist_item_t
*
p_item_in_category
;
input_item_t
**
pp_tracklist
;
int
i_tracklist_entries
;
int
i_identifier
;
...
...
@@ -121,7 +120,7 @@ int Demux( demux_t *p_demux )
}
if
(
i_ret
==
1
)
i_ret
=
parse_playlist_node
(
p_demux
,
p_
playlist
,
p_
current_input
,
i_ret
=
parse_playlist_node
(
p_demux
,
p_current_input
,
p_xml_reader
,
"playlist"
)
?
0
:
-
1
;
int
i
;
...
...
@@ -152,7 +151,6 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
/**
* \brief parse the root node of a XSPF playlist
* \param p_demux demuxer instance
* \param p_playlist playlist instance
* \param p_input_item current input item
* \param p_xml_reader xml reader instance
* \param psz_element name of element to parse
...
...
@@ -250,7 +248,6 @@ static bool parse_playlist_node COMPLEX_INTERFACE
if
(
p_handler
->
type
==
COMPLEX_CONTENT
)
{
if
(
p_handler
->
pf_handler
.
cmplx
(
p_demux
,
p_playlist
,
p_input_item
,
p_xml_reader
,
p_handler
->
name
)
)
...
...
@@ -356,7 +353,7 @@ static bool parse_tracklist_node COMPLEX_INTERFACE
FREE_NAME
();
/* parse the track data in a separate function */
if
(
parse_track_node
(
p_demux
,
p_
playlist
,
p_
input_item
,
if
(
parse_track_node
(
p_demux
,
p_input_item
,
p_xml_reader
,
"track"
)
==
true
)
i_ntracks
++
;
}
...
...
@@ -454,7 +451,6 @@ static bool parse_track_node COMPLEX_INTERFACE
return
false
;
}
if
(
p_handler
->
pf_handler
.
cmplx
(
p_demux
,
p_playlist
,
p_new_input
,
p_xml_reader
,
p_handler
->
name
)
)
...
...
@@ -558,7 +554,7 @@ static bool parse_track_node COMPLEX_INTERFACE
free
(
psz_uri
);
psz_uri
=
psz_tmp
;
}
p_new_input
=
input_ItemNewExt
(
p_
playlist
,
psz_uri
,
p_new_input
=
input_ItemNewExt
(
p_
demux
,
psz_uri
,
NULL
,
0
,
NULL
,
-
1
);
free
(
psz_uri
);
input_ItemCopyOptions
(
p_input_item
,
p_new_input
);
...
...
@@ -734,7 +730,7 @@ static bool parse_extension_node COMPLEX_INTERFACE
msg_Warn
(
p_demux
,
"<node> requires
\"
title
\"
attribute"
);
return
false
;
}
p_new_input
=
input_ItemNewWithType
(
VLC_OBJECT
(
p_
playlist
),
"vlc://nop"
,
p_new_input
=
input_ItemNewWithType
(
VLC_OBJECT
(
p_
demux
),
"vlc://nop"
,
psz_title
,
0
,
NULL
,
-
1
,
ITEM_TYPE_DIRECTORY
);
if
(
p_new_input
)
{
...
...
@@ -792,7 +788,6 @@ static bool parse_extension_node COMPLEX_INTERFACE
if
(
p_handler
->
type
==
COMPLEX_CONTENT
)
{
if
(
p_handler
->
pf_handler
.
cmplx
(
p_demux
,
p_playlist
,
p_input_item
,
p_xml_reader
,
p_handler
->
name
)
)
...
...
@@ -870,7 +865,7 @@ static bool parse_extension_node COMPLEX_INTERFACE
*/
static
bool
parse_extitem_node
COMPLEX_INTERFACE
{
VLC_UNUSED
(
p
_playlist
);
VLC_UNUSED
(
p
sz_element
);
VLC_UNUSED
(
psz_element
);
input_item_t
*
p_new_input
=
NULL
;
char
*
psz_name
=
NULL
;
char
*
psz_value
=
NULL
;
...
...
@@ -932,7 +927,7 @@ static bool parse_extitem_node COMPLEX_INTERFACE
*/
static
bool
skip_element
COMPLEX_INTERFACE
{
VLC_UNUSED
(
p_demux
);
VLC_UNUSED
(
p_
playlist
);
VLC_UNUSED
(
p_
input_item
);
VLC_UNUSED
(
p_demux
);
VLC_UNUSED
(
p_input_item
);
char
*
psz_endname
;
while
(
xml_ReaderRead
(
p_xml_reader
)
==
1
)
...
...
modules/demux/playlist/xspf.h
View file @
35976188
...
...
@@ -35,7 +35,6 @@ enum {
const char *psz_name,\
char *psz_value)
#define COMPLEX_INTERFACE (demux_t *p_demux,\
playlist_t *p_playlist,\
input_item_t *p_input_item,\
xml_reader_t *p_xml_reader,\
const char *psz_element)
...
...
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