[vlc-commits] [Git][videolan/vlc][master] resource: setup viewpoint and title only once per vout
Hugo Beauzée-Luyssen (@chouquette)
gitlab at videolan.org
Fri Jan 7 12:49:24 UTC 2022
Hugo Beauzée-Luyssen pushed to branch master at VideoLAN / VLC
Commits:
dd4fa4c7 by Thomas Guillem at 2022-01-07T12:23:01+00:00
resource: setup viewpoint and title only once per vout
Viewpoint and title are now only setup when the vout is just started.
There was already a check in DisplayVoutTitle() preventing to spam the
same title again and again.
- - - - -
1 changed file:
- src/input/resource.c
Changes:
=====================================
src/input/resource.c
=====================================
@@ -509,16 +509,16 @@ vout_thread_t *input_resource_RequestVout(input_resource_t *p_resource,
vout_rsc->started = true;
if (vout_state != NULL)
*vout_state = INPUT_RESOURCE_VOUT_STARTED;
- }
- DisplayVoutTitle(p_resource, cfg->vout, &vout_rsc->psz_prev_title);
+ DisplayVoutTitle(p_resource, cfg->vout, &vout_rsc->psz_prev_title);
- /* Send original viewpoint to the input in order to update other ESes */
- if (p_resource->p_input != NULL)
- {
- input_control_param_t param = { .viewpoint = cfg->fmt->pose };
- input_ControlPush(p_resource->p_input, INPUT_CONTROL_SET_INITIAL_VIEWPOINT,
- ¶m);
+ /* Send original viewpoint to the input in order to update other ESes */
+ if (p_resource->p_input != NULL)
+ {
+ input_control_param_t param = { .viewpoint = cfg->fmt->pose };
+ input_ControlPush(p_resource->p_input, INPUT_CONTROL_SET_INITIAL_VIEWPOINT,
+ ¶m);
+ }
}
vlc_mutex_unlock( &p_resource->lock );
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/dd4fa4c7426c146a5915518dbb4e0961b40cab6e
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/dd4fa4c7426c146a5915518dbb4e0961b40cab6e
You're receiving this email because of your account on code.videolan.org.
More information about the vlc-commits
mailing list