[vlc-devel] [PATCH 8/8] qt: apply subsdelay-factor change on all vouts
Victorien Le Couviour--Tuffet
victorien.lecouviour.tuffet at gmail.com
Tue Jun 27 17:38:48 CEST 2017
---
modules/gui/qt/components/extended_panels.cpp | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/modules/gui/qt/components/extended_panels.cpp b/modules/gui/qt/components/extended_panels.cpp
index e5eee3a2b1..b6874ea295 100644
--- a/modules/gui/qt/components/extended_panels.cpp
+++ b/modules/gui/qt/components/extended_panels.cpp
@@ -1533,12 +1533,11 @@ void SyncControls::subsdelayClean()
void SyncControls::subsdelaySetFactor( double f_factor )
{
- /* Try to find an instance of subsdelay, and set its factor */
- vlc_object_t *p_obj = ( vlc_object_t * ) vlc_object_find_name( p_intf->obj.libvlc, "subsdelay" );
- if( p_obj )
+ QVector<vout_thread_t*> p_vouts = THEMIM->getVouts();
+ foreach( vout_thread_t *p_vout, p_vouts )
{
- var_SetFloat( p_obj, SUBSDELAY_CFG_FACTOR, f_factor );
- vlc_object_release( p_obj );
+ var_SetFloat( p_vout, SUBSDELAY_CFG_FACTOR, f_factor );
+ vlc_object_release( p_vout );
}
}
--
2.13.1
More information about the vlc-devel
mailing list