Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
b8fa74e0
Commit
b8fa74e0
authored
Sep 16, 2008
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Loading the text renderer does not need the real video size.
parent
5d96d841
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
src/video_output/vout_subpictures.c
src/video_output/vout_subpictures.c
+4
-4
No files found.
src/video_output/vout_subpictures.c
View file @
b8fa74e0
...
...
@@ -515,7 +515,7 @@ static void SpuRenderUpdateBlend( spu_t *p_spu, int i_out_width, int i_out_heigh
if
(
!
p_blend
->
p_module
)
p_blend
->
p_module
=
module_Need
(
p_blend
,
"video blending"
,
0
,
0
);
}
static
void
SpuRenderCreateAndLoadText
(
spu_t
*
p_spu
,
int
i_width
,
int
i_height
)
static
void
SpuRenderCreateAndLoadText
(
spu_t
*
p_spu
)
{
filter_t
*
p_text
;
...
...
@@ -531,9 +531,9 @@ static void SpuRenderCreateAndLoadText( spu_t *p_spu, int i_width, int i_height
es_format_Init
(
&
p_text
->
fmt_out
,
VIDEO_ES
,
0
);
p_text
->
fmt_out
.
video
.
i_width
=
p_text
->
fmt_out
.
video
.
i_visible_width
=
i_width
;
p_text
->
fmt_out
.
video
.
i_visible_width
=
32
;
p_text
->
fmt_out
.
video
.
i_height
=
p_text
->
fmt_out
.
video
.
i_visible_height
=
i_height
;
p_text
->
fmt_out
.
video
.
i_visible_height
=
32
;
p_text
->
pf_sub_buffer_new
=
spu_new_buffer
;
p_text
->
pf_sub_buffer_del
=
spu_del_buffer
;
...
...
@@ -1038,7 +1038,7 @@ void spu_RenderSubpictures( spu_t *p_spu, video_format_t *p_fmt_a,
* element in the region list, so just load it anyway as we'll
* probably want it sooner or later. */
if
(
!
p_spu
->
p_text
)
SpuRenderCreateAndLoadText
(
p_spu
,
p_fmt
->
i_width
,
p_fmt
->
i_height
);
SpuRenderCreateAndLoadText
(
p_spu
);
/* */
for
(
p_subpic
=
p_subpic_list
;
;
p_subpic
=
p_subpic
->
p_next
)
...
...
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