[vlc-devel] [PATCHv2 10/18] qt: apply filters change on all vouts

Thomas Guillem thomas at gllm.fr
Tue May 30 18:41:00 CEST 2017


---
 modules/gui/qt/components/extended_panels.cpp | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/modules/gui/qt/components/extended_panels.cpp b/modules/gui/qt/components/extended_panels.cpp
index 1c6e505ec9..351a9ab428 100644
--- a/modules/gui/qt/components/extended_panels.cpp
+++ b/modules/gui/qt/components/extended_panels.cpp
@@ -267,8 +267,8 @@ void ExtVideo::cropChange()
     if( ui.leftRightCropSync->isChecked() )
         ui.cropRightPx->setValue( ui.cropLeftPx->value() );
 
-    vout_thread_t *p_vout = THEMIM->getVout();
-    if( p_vout )
+    QVector<vout_thread_t*> p_vouts = THEMIM->getVouts();
+    foreach( vout_thread_t *p_vout, p_vouts )
     {
         var_SetInteger( p_vout, "crop-top", ui.cropTopPx->value() );
         var_SetInteger( p_vout, "crop-bottom", ui.cropBotPx->value() );
@@ -331,8 +331,8 @@ static void ChangeVFiltersString( struct intf_thread_t *p_intf, const char *psz_
     /* Try to set non splitter filters on the fly */
     if( strcmp( psz_filter_type, "video-splitter" ) )
     {
-        vout_thread_t *p_vout = THEMIM->getVout();
-        if( p_vout )
+        QVector<vout_thread_t*> p_vouts = THEMIM->getVouts();
+        foreach( vout_thread_t *p_vout, p_vouts )
         {
             var_SetString( p_vout, psz_filter_type, qtu( result ) );
             vlc_object_release( p_vout );
-- 
2.11.0



More information about the vlc-devel mailing list