[vlc-commits] Qt: set ttl on sout correctly. Close #2631

Jean-Baptiste Kempf git at videolan.org
Thu Aug 16 12:41:35 CEST 2012


vlc/vlc-2.0 | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Thu Aug 16 12:40:42 2012 +0200| [39a6915679a8da769b5d1326ba39e80ace77dde7] | committer: Jean-Baptiste Kempf

Qt: set ttl on sout correctly. Close #2631

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

 modules/gui/qt4/dialogs/sout.cpp |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/modules/gui/qt4/dialogs/sout.cpp b/modules/gui/qt4/dialogs/sout.cpp
index c9241e6..3b0fbb9 100644
--- a/modules/gui/qt4/dialogs/sout.cpp
+++ b/modules/gui/qt4/dialogs/sout.cpp
@@ -259,6 +259,8 @@ void SoutDialog::updateMRL()
     mrl = smrl.getMrl();
 
     if( ui.soutAll->isChecked() ) mrl.append( " :sout-all" );
+    if( ui.ttl->value() > 1 )
+         mrl.append( QString( " :ttl=" ) + QString::number( ui.ttl->value() ) );
     mrl.append( " :sout-keep" );
 
     ui.mrlEdit->setPlainText( mrl );



More information about the vlc-commits mailing list