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
252c8822
Commit
252c8822
authored
Sep 23, 2008
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use resolve_xml_special_chars where appropriate.
(noticed by Antoine Cellerier)
parent
897a63f6
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
34 deletions
+3
-34
modules/misc/freetype.c
modules/misc/freetype.c
+1
-0
modules/misc/quartztext.c
modules/misc/quartztext.c
+1
-0
modules/misc/text_renderer.h
modules/misc/text_renderer.h
+1
-34
No files found.
modules/misc/freetype.c
View file @
252c8822
...
@@ -40,6 +40,7 @@
...
@@ -40,6 +40,7 @@
#include <vlc_stream.h>
#include <vlc_stream.h>
#include <vlc_xml.h>
#include <vlc_xml.h>
#include <vlc_input.h>
#include <vlc_input.h>
#include <vlc_strings.h>
#include <math.h>
#include <math.h>
#include <errno.h>
#include <errno.h>
...
...
modules/misc/quartztext.c
View file @
252c8822
...
@@ -38,6 +38,7 @@
...
@@ -38,6 +38,7 @@
#include <vlc_stream.h>
#include <vlc_stream.h>
#include <vlc_xml.h>
#include <vlc_xml.h>
#include <vlc_input.h>
#include <vlc_input.h>
#include <vlc_strings.h>
#include <math.h>
#include <math.h>
...
...
modules/misc/text_renderer.h
View file @
252c8822
...
@@ -494,39 +494,6 @@ static void HandleWhiteSpace( char *psz_node )
...
@@ -494,39 +494,6 @@ static void HandleWhiteSpace( char *psz_node )
}
}
/* */
/* */
static
void
HandleMarkup
(
char
*
psz_node
)
{
static
const
struct
{
const
char
*
psz_pattern
;
char
i_char
;
}
p_replace
[]
=
{
{
"<"
,
'<'
},
{
">"
,
'>'
},
{
"&"
,
'&'
},
{
"""
,
'"'
},
/* This one will always match */
{
"&"
,
'&'
}
};
char
*
s
=
psz_node
;
while
(
(
s
=
strchr
(
s
,
'&'
)
)
!=
NULL
)
{
size_t
i_size
;
int
i
;
for
(
i
=
0
;
;
i
++
)
{
i_size
=
strlen
(
p_replace
[
i
].
psz_pattern
);
if
(
!
strncmp
(
s
,
p_replace
[
i
].
psz_pattern
,
i_size
)
)
break
;
}
if
(
i_size
>
1
)
memmove
(
&
s
[
1
],
&
s
[
i_size
],
strlen
(
s
)
-
i_size
+
1
);
*
s
++
=
p_replace
[
i
].
i_char
;
}
}
static
int
ProcessNodes
(
filter_t
*
p_filter
,
static
int
ProcessNodes
(
filter_t
*
p_filter
,
xml_reader_t
*
p_xml_reader
,
xml_reader_t
*
p_xml_reader
,
text_style_t
*
p_font_style
,
text_style_t
*
p_font_style
,
...
@@ -654,7 +621,7 @@ static int ProcessNodes( filter_t *p_filter,
...
@@ -654,7 +621,7 @@ static int ProcessNodes( filter_t *p_filter,
{
{
/* */
/* */
HandleWhiteSpace
(
psz_node
);
HandleWhiteSpace
(
psz_node
);
HandleMarkup
(
psz_node
);
resolve_xml_special_chars
(
psz_node
);
SetupLine
(
p_filter
,
psz_node
,
&
psz_text
,
SetupLine
(
p_filter
,
psz_node
,
&
psz_text
,
pi_runs
,
ppi_run_lengths
,
ppp_styles
,
pi_runs
,
ppi_run_lengths
,
ppp_styles
,
...
...
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