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
a8d8ce84
Commit
a8d8ce84
authored
Apr 06, 2015
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Text Renderers: move to text_segment
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
337ac422
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
6 deletions
+8
-6
modules/text_renderer/freetype.c
modules/text_renderer/freetype.c
+3
-3
modules/text_renderer/svg.c
modules/text_renderer/svg.c
+2
-1
modules/text_renderer/win32text.c
modules/text_renderer/win32text.c
+3
-2
No files found.
modules/text_renderer/freetype.c
View file @
a8d8ce84
...
...
@@ -923,11 +923,11 @@ static int RenderCommon( filter_t *p_filter, subpicture_region_t *p_region_out,
return
VLC_EGENERIC
;
if
(
b_html
&&
!
p_region_in
->
psz_html
)
return
VLC_EGENERIC
;
if
(
!
b_html
&&
!
p_region_in
->
psz_text
)
if
(
!
b_html
&&
!
p_region_in
->
p
_text
&&
!
p_region_in
->
p_text
->
p
sz_text
)
return
VLC_EGENERIC
;
const
size_t
i_text_max
=
strlen
(
b_html
?
p_region_in
->
psz_html
:
p_region_in
->
psz_text
);
:
p_region_in
->
p
_text
->
p
sz_text
);
uni_char_t
*
psz_text
=
calloc
(
i_text_max
,
sizeof
(
*
psz_text
)
);
text_style_t
**
pp_styles
=
calloc
(
i_text_max
,
sizeof
(
*
pp_styles
)
);
...
...
@@ -1041,7 +1041,7 @@ static int RenderCommon( filter_t *p_filter, subpicture_region_t *p_region_out,
psz_text
,
pp_styles
,
NULL
,
p_region_in
->
psz_text
,
p_style
,
0
);
p_region_in
->
p
_text
->
p
sz_text
,
p_style
,
0
);
}
if
(
!
rv
&&
i_text_length
>
0
)
...
...
modules/text_renderer/svg.c
View file @
a8d8ce84
...
...
@@ -435,7 +435,8 @@ static int RenderText( filter_t *p_filter, subpicture_region_t *p_region_out,
/* Sanity check */
if
(
!
p_region_in
||
!
p_region_out
)
return
VLC_EGENERIC
;
psz_string
=
p_region_in
->
psz_text
;
if
(
!
p_region_in
->
p_text
)
return
VLC_EGENERIC
;
psz_string
=
p_region_in
->
p_text
->
psz_text
;
if
(
!
psz_string
||
!*
psz_string
)
return
VLC_EGENERIC
;
p_svg
=
malloc
(
sizeof
(
svg_rendition_t
)
);
...
...
modules/text_renderer/win32text.c
View file @
a8d8ce84
...
...
@@ -311,10 +311,11 @@ static int RenderText( filter_t *p_filter, subpicture_region_t *p_region_out,
/* Sanity check */
if
(
!
p_region_in
||
!
p_region_out
)
return
VLC_EGENERIC
;
if
(
!
p_region_in
->
psz_text
||
!*
p_region_in
->
psz_text
)
if
(
!
p_region_in
->
p_text
)
return
VLC_EGENERIC
;
if
(
!
p_region_in
->
p_text
->
psz_text
||
!*
p_region_in
->
p_text
->
psz_text
)
return
VLC_EGENERIC
;
psz_string
=
ToT
(
p_region_in
->
psz_text
);
psz_string
=
ToT
(
p_region_in
->
p
_text
->
p
sz_text
);
if
(
psz_string
==
NULL
)
return
VLC_EGENERIC
;
if
(
!*
psz_string
)
...
...
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