[vlc-commits] Qt: correctly release vout objects
Jean-Baptiste Kempf
git at videolan.org
Fri Mar 30 18:05:19 CEST 2012
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Fri Mar 30 17:03:58 2012 +0200| [d1fdb577189ecc763f81a691ed28e601ff2438e2] | committer: Jean-Baptiste Kempf
Qt: correctly release vout objects
Close #6118
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d1fdb577189ecc763f81a691ed28e601ff2438e2
---
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 a274c24..b02ec41 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