[vlc-commits] qt: apply filters change on all vouts

Thomas Guillem git at videolan.org
Wed May 31 17:45:30 CEST 2017


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Tue May 30 17:14:22 2017 +0200| [03896d13b08318c7c9a592e26b9ae039f491a5e9] | committer: Thomas Guillem

qt: apply filters change on all vouts

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=03896d13b08318c7c9a592e26b9ae039f491a5e9
---

 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 e3471057ec..a5553dac78 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 );



More information about the vlc-commits mailing list