From 96ad75b181675a9fc73c075c540d5e38fd0174c7 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Kempf Date: Sat, 4 Sep 2010 18:34:07 +0200 Subject: [PATCH] Qt/Sout: pass the ttl from the UI to the MRL --- modules/gui/qt4/dialogs/sout.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/modules/gui/qt4/dialogs/sout.cpp b/modules/gui/qt4/dialogs/sout.cpp index 3a6a53f222..c7a53fe789 100644 --- a/modules/gui/qt4/dialogs/sout.cpp +++ b/modules/gui/qt4/dialogs/sout.cpp @@ -34,6 +34,7 @@ #include #include #include +#include #include SoutDialog::SoutDialog( QWidget *parent, intf_thread_t *_p_intf, const QString& inputMRL ) @@ -260,8 +261,8 @@ void SoutDialog::updateMRL() /* FIXME: This sucks. We should really return a QStringList instead of * (mis)quoting, concatainating and split input item paramters. */ - name = name.replace( " ", " " ); - group = group.replace( " ", " " ); + name = name.replace( " ", " " ); + group = group.replace( " ", " " ); /* We need to add options for both standard and rtp targets */ /* This is inelegant but simple and functional */ @@ -277,7 +278,9 @@ void SoutDialog::updateMRL() mrl.append( qfu( " :no-sout-standard-sap" ) ); } - if( ui.soutAll->isChecked() ) mrl.append( " :sout-all" ); + if( ui.soutAll->isChecked() ) mrl.append( " :sout-all" ); + + if( ui.ttl->value() != 1 ) mrl.append( " :ttl=" + ui.ttl->value() ); mrl.append( " :sout-keep" ); -- 2.39.2