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
e1b3e5a9
Commit
e1b3e5a9
authored
Dec 15, 2013
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Freetype: create an xml_reader helper
parent
f20218fa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
6 deletions
+13
-6
modules/text_renderer/freetype.c
modules/text_renderer/freetype.c
+13
-6
No files found.
modules/text_renderer/freetype.c
View file @
e1b3e5a9
...
...
@@ -1966,6 +1966,18 @@ static int ProcessLines( filter_t *p_filter,
return
VLC_SUCCESS
;
}
static
xml_reader_t
*
GetXMLReader
(
filter_t
*
p_filter
,
stream_t
*
p_sub
)
{
xml_reader_t
*
p_xml_reader
=
p_filter
->
p_sys
->
p_xml
;
if
(
!
p_xml_reader
)
p_xml_reader
=
xml_ReaderCreate
(
p_filter
,
p_sub
);
else
p_xml_reader
=
xml_ReaderReset
(
p_xml_reader
,
p_sub
);
p_filter
->
p_sys
->
p_xml
=
p_xml_reader
;
return
p_xml_reader
;
}
/**
* This function renders a text subpicture region into another one.
* It also calculates the size needed for this string, and renders the
...
...
@@ -2022,12 +2034,7 @@ static int RenderCommon( filter_t *p_filter, subpicture_region_t *p_region_out,
return
VLC_SUCCESS
;
}
xml_reader_t
*
p_xml_reader
=
p_filter
->
p_sys
->
p_xml
;
if
(
!
p_xml_reader
)
p_xml_reader
=
xml_ReaderCreate
(
p_filter
,
p_sub
);
else
p_xml_reader
=
xml_ReaderReset
(
p_xml_reader
,
p_sub
);
p_filter
->
p_sys
->
p_xml
=
p_xml_reader
;
xml_reader_t
*
p_xml_reader
=
GetXMLReader
(
p_filter
,
p_sub
);
if
(
!
p_xml_reader
)
rv
=
VLC_EGENERIC
;
...
...
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