[vlc-commits] Qt: correctly release vout objects

Jean-Baptiste Kempf git at videolan.org
Fri Mar 30 18:11:41 CEST 2012


vlc/vlc-2.0 | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Fri Mar 30 17:03:58 2012 +0200| [2d2858146c968dd28ec9fdb60604714c5c4337eb] | committer: Jean-Baptiste Kempf

Qt: correctly release vout objects

Close #6118
(cherry picked from commit d1fdb577189ecc763f81a691ed28e601ff2438e2)

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.0.git/?a=commit;h=2d2858146c968dd28ec9fdb60604714c5c4337eb
---

 modules/gui/qt4/components/controller_widget.cpp |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/modules/gui/qt4/components/controller_widget.cpp b/modules/gui/qt4/components/controller_widget.cpp
index a436816..5b5e62b 100644
--- a/modules/gui/qt4/components/controller_widget.cpp
+++ b/modules/gui/qt4/components/controller_widget.cpp
@@ -289,11 +289,16 @@ void AspectRatioComboBox::updateRatios()
                  QString( val_list.p_list->p_values[i].psz_string ) );
     setEnabled( true );
     var_FreeList( &val_list, &text_list );
+    vlc_object_release( p_vout );
 }
 
 void AspectRatioComboBox::updateAspectRatio( int x )
 {
     vout_thread_t* p_vout = THEMIM->getVout();
     if( p_vout && x >= 0 )
+    {
         var_SetString( p_vout, "aspect-ratio", qtu( itemData(x).toString() ) );
+        vlc_object_release( p_vout );
+    }
 }
+



More information about the vlc-commits mailing list