Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Steve Lhomme
VLC
Commits
070c5b31
Commit
070c5b31
authored
Jun 02, 2011
by
Laurent Aimar
Browse files
Redraw vout subpicture only when needed.
parent
8f93cd2d
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/video_output/video_epg.c
View file @
070c5b31
...
...
@@ -215,10 +215,11 @@ static int OSDEpgValidate(subpicture_t *subpic,
bool
has_dst_changed
,
const
video_format_t
*
fmt_dst
,
mtime_t
ts
)
{
VLC_UNUSED
(
subpic
);
VLC_UNUSED
(
ts
);
VLC_UNUSED
(
fmt_src
);
VLC_UNUSED
(
has_dst_changed
);
VLC_UNUSED
(
fmt_dst
);
VLC_UNUSED
(
subpic
);
VLC_UNUSED
(
ts
);
VLC_UNUSED
(
fmt_src
);
VLC_UNUSED
(
has_src_changed
);
VLC_UNUSED
(
fmt_dst
);
if
(
!
has_src_changed
&&
!
has_dst_changed
)
if
(
!
has_dst_changed
)
return
VLC_SUCCESS
;
return
VLC_EGENERIC
;
}
...
...
src/video_output/video_text.c
View file @
070c5b31
...
...
@@ -41,10 +41,11 @@ static int OSDTextValidate(subpicture_t *subpic,
bool
has_dst_changed
,
const
video_format_t
*
fmt_dst
,
mtime_t
ts
)
{
VLC_UNUSED
(
subpic
);
VLC_UNUSED
(
ts
);
VLC_UNUSED
(
fmt_src
);
VLC_UNUSED
(
has_dst_changed
);
VLC_UNUSED
(
fmt_dst
);
VLC_UNUSED
(
subpic
);
VLC_UNUSED
(
ts
);
VLC_UNUSED
(
fmt_src
);
VLC_UNUSED
(
has_src_changed
);
VLC_UNUSED
(
fmt_dst
);
if
(
!
has_src_changed
&&
!
has_dst_changed
)
if
(
!
has_dst_changed
)
return
VLC_SUCCESS
;
return
VLC_EGENERIC
;
}
...
...
src/video_output/video_widgets.c
View file @
070c5b31
...
...
@@ -251,10 +251,11 @@ static int OSDWidgetValidate(subpicture_t *subpic,
bool
has_dst_changed
,
const
video_format_t
*
fmt_dst
,
mtime_t
ts
)
{
VLC_UNUSED
(
subpic
);
VLC_UNUSED
(
ts
);
VLC_UNUSED
(
fmt_src
);
VLC_UNUSED
(
has_dst_changed
);
VLC_UNUSED
(
fmt_dst
);
VLC_UNUSED
(
subpic
);
VLC_UNUSED
(
ts
);
VLC_UNUSED
(
fmt_src
);
VLC_UNUSED
(
has_src_changed
);
VLC_UNUSED
(
fmt_dst
);
if
(
!
has_src_changed
&&
!
has_dst_changed
)
if
(
!
has_dst_changed
)
return
VLC_SUCCESS
;
return
VLC_EGENERIC
;
}
...
...
@@ -265,7 +266,7 @@ static void OSDWidgetUpdate(subpicture_t *subpic,
mtime_t
ts
)
{
subpicture_updater_sys_t
*
sys
=
subpic
->
updater
.
p_sys
;
VLC_UNUSED
(
fmt_
dst
);
VLC_UNUSED
(
ts
);
VLC_UNUSED
(
fmt_
src
);
VLC_UNUSED
(
ts
);
video_format_t
fmt
=
*
fmt_dst
;
fmt
.
i_width
=
fmt
.
i_width
*
fmt
.
i_sar_num
/
fmt
.
i_sar_den
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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