[vlc-commits] qt: apply subsdelay-factor change on all vouts
Victorien Le Couviour--Tuffet
git at videolan.org
Sat Jul 1 18:25:20 CEST 2017
vlc | branch: master | Victorien Le Couviour--Tuffet <victorien.lecouviour.tuffet at gmail.com> | Mon Jun 26 16:17:50 2017 +0200| [87de005c3762dc2846ddc09e45ab7782ecc685ce] | committer: Thomas Guillem
qt: apply subsdelay-factor change on all vouts
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=87de005c3762dc2846ddc09e45ab7782ecc685ce
---
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 );
}
}
More information about the vlc-commits
mailing list