Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
70faefb1
Commit
70faefb1
authored
Jul 27, 2010
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve xml_ReaderReset()
parent
15172e68
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
src/misc/xml.c
src/misc/xml.c
+9
-5
No files found.
src/misc/xml.c
View file @
70faefb1
...
...
@@ -107,17 +107,21 @@ void xml_ReaderDelete(xml_reader_t *reader)
* Resets an existing XML reader.
* If you need to parse several XML files, this function is much faster than
* xml_ReaderCreate() and xml_ReaderDelete() combined.
* If the stream parameter is NULL, the XML reader will be stopped, but
* not restarted until the next xml_ReaderReset() call with a non-NULL stream.
*
* @param reader XML reader to reinitialize
* @param stream new stream to read XML data from
* @return reader on success,
NULL on error (in that case, the reader is
* destroyed).
* @param stream new stream to read XML data from
(or NULL)
* @return reader on success,
*
NULL on error (in that case, the reader is
destroyed).
*/
xml_reader_t
*
xml_ReaderReset
(
xml_reader_t
*
reader
,
stream_t
*
stream
)
{
module_stop
(
reader
,
reader
->
p_module
);
if
(
reader
->
p_stream
)
module_stop
(
reader
,
reader
->
p_module
);
reader
->
p_stream
=
stream
;
if
(
module_start
(
reader
,
reader
->
p_module
))
if
(
(
stream
!=
NULL
)
&&
module_start
(
reader
,
reader
->
p_module
))
{
vlc_object_release
(
reader
);
return
NULL
;
...
...
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