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
fb1e47e8
Commit
fb1e47e8
authored
Nov 25, 2014
by
Thomas Guillem
Committed by
Jean-Baptiste Kempf
Nov 25, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
android_window: create sub filter after sub pic alloc
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
1b8c3ae1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
7 deletions
+5
-7
modules/video_output/android/android_window.c
modules/video_output/android/android_window.c
+5
-7
No files found.
modules/video_output/android/android_window.c
View file @
fb1e47e8
...
...
@@ -799,13 +799,8 @@ static void SubpictureDisplay(vout_display_t *vd, subpicture_t *subpicture)
sys
->
p_sub_pic
->
p
[
0
].
i_pitch
*
sys
->
p_sub_pic
->
p
[
0
].
i_lines
);
if
(
subpicture
)
{
/* Allocate a blending filter if needed. */
if
(
unlikely
(
!
sys
->
p_spu_blend
))
sys
->
p_spu_blend
=
filter_NewBlend
(
VLC_OBJECT
(
vd
),
&
sys
->
p_sub_pic
->
format
);
picture_BlendSubpicture
(
sys
->
p_sub_pic
,
sys
->
p_spu_blend
,
subpicture
);
}
AndroidWindow_UnlockPicture
(
sys
,
sys
->
p_sub_window
,
sys
->
p_sub_pic
,
true
);
}
...
...
@@ -842,8 +837,11 @@ static void Display(vout_display_t *vd, picture_t *picture,
if
(
!
sys
->
p_sub_pic
&&
SetupWindowSubtitleSurface
(
sys
)
==
0
)
sys
->
p_sub_pic
=
PictureAlloc
(
sys
,
&
sys
->
p_sub_window
->
fmt
);
if
(
!
sys
->
p_spu_blend
)
sys
->
p_spu_blend
=
filter_NewBlend
(
VLC_OBJECT
(
vd
),
&
sys
->
p_sub_pic
->
format
);
if
(
sys
->
p_sub_pic
)
if
(
sys
->
p_sub_pic
&&
sys
->
p_spu_blend
)
sys
->
b_has_subpictures
=
true
;
}
/* As long as no subpicture was received, do not call
...
...
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