Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
854946f1
Commit
854946f1
authored
Jul 15, 2009
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
itml: cosmetics.
parent
918a6962
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
11 deletions
+27
-11
modules/demux/playlist/itml.c
modules/demux/playlist/itml.c
+27
-11
No files found.
modules/demux/playlist/itml.c
View file @
854946f1
...
...
@@ -129,7 +129,10 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
/**
* \brief parse the root node of the playlist
*/
static
bool
parse_plist_node
COMPLEX_INTERFACE
static
bool
parse_plist_node
(
demux_t
*
p_demux
,
input_item_t
*
p_input_item
,
track_elem_t
*
p_track
,
xml_reader_t
*
p_xml_reader
,
const
char
*
psz_element
,
xml_elem_hnd_t
*
p_handlers
)
{
VLC_UNUSED
(
p_track
);
VLC_UNUSED
(
psz_element
);
char
*
psz_name
=
NULL
;
...
...
@@ -175,7 +178,9 @@ static bool parse_plist_node COMPLEX_INTERFACE
* \brief parse a <dict>
* \param COMPLEX_INTERFACE
*/
static
bool
parse_dict
COMPLEX_INTERFACE
static
bool
parse_dict
(
demux_t
*
p_demux
,
input_item_t
*
p_input_item
,
track_elem_t
*
p_track
,
xml_reader_t
*
p_xml_reader
,
const
char
*
psz_element
,
xml_elem_hnd_t
*
p_handlers
)
{
int
i_node
;
char
*
psz_name
=
NULL
;
...
...
@@ -295,7 +300,10 @@ static bool parse_dict COMPLEX_INTERFACE
return
false
;
}
static
bool
parse_plist_dict
COMPLEX_INTERFACE
static
bool
parse_plist_dict
(
demux_t
*
p_demux
,
input_item_t
*
p_input_item
,
track_elem_t
*
p_track
,
xml_reader_t
*
p_xml_reader
,
const
char
*
psz_element
,
xml_elem_hnd_t
*
p_handlers
)
{
VLC_UNUSED
(
p_track
);
VLC_UNUSED
(
psz_element
);
VLC_UNUSED
(
p_handlers
);
xml_elem_hnd_t
pl_elements
[]
=
...
...
@@ -314,7 +322,10 @@ static bool parse_plist_dict COMPLEX_INTERFACE
"dict"
,
pl_elements
);
}
static
bool
parse_tracks_dict
COMPLEX_INTERFACE
static
bool
parse_tracks_dict
(
demux_t
*
p_demux
,
input_item_t
*
p_input_item
,
track_elem_t
*
p_track
,
xml_reader_t
*
p_xml_reader
,
const
char
*
psz_element
,
xml_elem_hnd_t
*
p_handlers
)
{
VLC_UNUSED
(
p_track
);
VLC_UNUSED
(
psz_element
);
VLC_UNUSED
(
p_handlers
);
xml_elem_hnd_t
tracks_elements
[]
=
...
...
@@ -332,7 +343,10 @@ static bool parse_tracks_dict COMPLEX_INTERFACE
return
true
;
}
static
bool
parse_track_dict
COMPLEX_INTERFACE
static
bool
parse_track_dict
(
demux_t
*
p_demux
,
input_item_t
*
p_input_item
,
track_elem_t
*
p_track
,
xml_reader_t
*
p_xml_reader
,
const
char
*
psz_element
,
xml_elem_hnd_t
*
p_handlers
)
{
VLC_UNUSED
(
psz_element
);
VLC_UNUSED
(
p_handlers
);
input_item_t
*
p_new_input
=
NULL
;
...
...
@@ -381,7 +395,7 @@ static bool parse_track_dict COMPLEX_INTERFACE
/* add meta info */
add_meta
(
p_new_input
,
p_track
);
vlc_gc_decref
(
p_new_input
);
p_demux
->
p_sys
->
i_ntracks
++
;
}
else
...
...
@@ -398,7 +412,7 @@ static bool parse_track_dict COMPLEX_INTERFACE
static
track_elem_t
*
new_track
()
{
track_elem_t
*
p_track
=
NULL
;
p_track
=
(
track_elem_t
*
)
malloc
(
sizeof
(
track_elem_t
)
);
p_track
=
malloc
(
sizeof
(
track_elem_t
)
);
if
(
p_track
)
{
p_track
->
name
=
NULL
;
...
...
@@ -428,7 +442,8 @@ static void free_track( track_elem_t *p_track )
free
(
p_track
);
}
static
bool
save_data
SIMPLE_INTERFACE
static
bool
save_data
(
track_elem_t
*
p_track
,
const
char
*
psz_name
,
char
*
psz_value
)
{
/* exit if setting is impossible */
if
(
!
psz_name
||
!
psz_value
||
!
p_track
)
...
...
@@ -458,8 +473,7 @@ static bool save_data SIMPLE_INTERFACE
/**
* \brief handles the supported <track> sub-elements
*/
static
bool
add_meta
(
input_item_t
*
p_input_item
,
track_elem_t
*
p_track
)
static
bool
add_meta
(
input_item_t
*
p_input_item
,
track_elem_t
*
p_track
)
{
/* exit if setting is impossible */
if
(
!
p_input_item
||
!
p_track
)
...
...
@@ -480,7 +494,9 @@ static bool add_meta( input_item_t *p_input_item,
/**
* \brief skips complex element content that we can't manage
*/
static
bool
skip_element
COMPLEX_INTERFACE
static
bool
skip_element
(
demux_t
*
p_demux
,
input_item_t
*
p_input_item
,
track_elem_t
*
p_track
,
xml_reader_t
*
p_xml_reader
,
const
char
*
psz_element
,
xml_elem_hnd_t
*
p_handlers
)
{
VLC_UNUSED
(
p_demux
);
VLC_UNUSED
(
p_input_item
);
VLC_UNUSED
(
p_track
);
VLC_UNUSED
(
p_handlers
);
...
...
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