Commit 070c5b31 authored by Laurent Aimar's avatar Laurent Aimar

Redraw vout subpicture only when needed.

parent 8f93cd2d
...@@ -215,10 +215,11 @@ static int OSDEpgValidate(subpicture_t *subpic, ...@@ -215,10 +215,11 @@ static int OSDEpgValidate(subpicture_t *subpic,
bool has_dst_changed, const video_format_t *fmt_dst, bool has_dst_changed, const video_format_t *fmt_dst,
mtime_t ts) mtime_t ts)
{ {
VLC_UNUSED(subpic); VLC_UNUSED(ts); VLC_UNUSED(fmt_src); VLC_UNUSED(subpic); VLC_UNUSED(ts);
VLC_UNUSED(has_dst_changed); VLC_UNUSED(fmt_dst); 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_SUCCESS;
return VLC_EGENERIC; return VLC_EGENERIC;
} }
......
...@@ -41,10 +41,11 @@ static int OSDTextValidate(subpicture_t *subpic, ...@@ -41,10 +41,11 @@ static int OSDTextValidate(subpicture_t *subpic,
bool has_dst_changed, const video_format_t *fmt_dst, bool has_dst_changed, const video_format_t *fmt_dst,
mtime_t ts) mtime_t ts)
{ {
VLC_UNUSED(subpic); VLC_UNUSED(ts); VLC_UNUSED(fmt_src); VLC_UNUSED(subpic); VLC_UNUSED(ts);
VLC_UNUSED(has_dst_changed); VLC_UNUSED(fmt_dst); 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_SUCCESS;
return VLC_EGENERIC; return VLC_EGENERIC;
} }
......
...@@ -251,10 +251,11 @@ static int OSDWidgetValidate(subpicture_t *subpic, ...@@ -251,10 +251,11 @@ static int OSDWidgetValidate(subpicture_t *subpic,
bool has_dst_changed, const video_format_t *fmt_dst, bool has_dst_changed, const video_format_t *fmt_dst,
mtime_t ts) mtime_t ts)
{ {
VLC_UNUSED(subpic); VLC_UNUSED(ts); VLC_UNUSED(fmt_src); VLC_UNUSED(subpic); VLC_UNUSED(ts);
VLC_UNUSED(has_dst_changed); VLC_UNUSED(fmt_dst); 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_SUCCESS;
return VLC_EGENERIC; return VLC_EGENERIC;
} }
...@@ -265,7 +266,7 @@ static void OSDWidgetUpdate(subpicture_t *subpic, ...@@ -265,7 +266,7 @@ static void OSDWidgetUpdate(subpicture_t *subpic,
mtime_t ts) mtime_t ts)
{ {
subpicture_updater_sys_t *sys = subpic->updater.p_sys; 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; video_format_t fmt = *fmt_dst;
fmt.i_width = fmt.i_width * fmt.i_sar_num / fmt.i_sar_den; fmt.i_width = fmt.i_width * fmt.i_sar_num / fmt.i_sar_den;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment