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
1b8c3ae1
Commit
1b8c3ae1
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: don't release sub_pic in vd->control
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
547fb0df
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
9 deletions
+14
-9
modules/video_output/android/android_window.c
modules/video_output/android/android_window.c
+14
-9
No files found.
modules/video_output/android/android_window.c
View file @
1b8c3ae1
...
...
@@ -115,6 +115,7 @@ struct vout_display_sys_t
android_window
*
p_window
;
android_window
*
p_sub_window
;
bool
b_sub_invalid
;
filter_t
*
p_spu_blend
;
picture_t
*
p_sub_pic
;
...
...
@@ -195,6 +196,7 @@ static void FixSubtitleFormat(vout_display_sys_t *sys)
}
p_fmt
->
i_x_offset
=
0
;
p_fmt
->
i_y_offset
=
0
;
sys
->
b_sub_invalid
=
true
;
}
#define ALIGN_16_PIXELS( x ) ( ( ( x ) + 15 ) / 16 * 16 )
...
...
@@ -826,6 +828,18 @@ static void Display(vout_display_t *vd, picture_t *picture,
picture_Release
(
picture
);
if
(
subpicture
)
{
if
(
sys
->
b_sub_invalid
)
{
sys
->
b_sub_invalid
=
false
;
if
(
sys
->
p_sub_pic
)
{
picture_Release
(
sys
->
p_sub_pic
);
sys
->
p_sub_pic
=
NULL
;
}
if
(
sys
->
p_spu_blend
)
{
filter_DeleteBlend
(
sys
->
p_spu_blend
);
sys
->
p_spu_blend
=
NULL
;
}
}
if
(
!
sys
->
p_sub_pic
&&
SetupWindowSubtitleSurface
(
sys
)
==
0
)
sys
->
p_sub_pic
=
PictureAlloc
(
sys
,
&
sys
->
p_sub_window
->
fmt
);
...
...
@@ -903,15 +917,6 @@ static int Control(vout_display_t *vd, int query, va_list args)
UpdateWindowSize
(
&
sys
->
p_window
->
fmt
,
sys
->
p_window
->
b_use_priv
);
FixSubtitleFormat
(
sys
);
if
(
sys
->
p_sub_pic
)
{
picture_Release
(
sys
->
p_sub_pic
);
sys
->
p_sub_pic
=
NULL
;
}
if
(
sys
->
p_spu_blend
)
{
filter_DeleteBlend
(
sys
->
p_spu_blend
);
sys
->
p_spu_blend
=
NULL
;
}
return
VLC_SUCCESS
;
}
default:
...
...
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