Commit 96ad75b1 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt/Sout: pass the ttl from the UI to the MRL

parent babf7fcc
...@@ -34,6 +34,7 @@ ...@@ -34,6 +34,7 @@
#include <QString> #include <QString>
#include <QFileDialog> #include <QFileDialog>
#include <QToolButton> #include <QToolButton>
#include <QSpinBox>
#include <assert.h> #include <assert.h>
SoutDialog::SoutDialog( QWidget *parent, intf_thread_t *_p_intf, const QString& inputMRL ) SoutDialog::SoutDialog( QWidget *parent, intf_thread_t *_p_intf, const QString& inputMRL )
...@@ -260,8 +261,8 @@ void SoutDialog::updateMRL() ...@@ -260,8 +261,8 @@ void SoutDialog::updateMRL()
/* FIXME: This sucks. We should really return a QStringList instead of /* FIXME: This sucks. We should really return a QStringList instead of
* (mis)quoting, concatainating and split input item paramters. */ * (mis)quoting, concatainating and split input item paramters. */
name = name.replace( " ", " " ); name = name.replace( " ", " " );
group = group.replace( " ", " " ); group = group.replace( " ", " " );
/* We need to add options for both standard and rtp targets */ /* We need to add options for both standard and rtp targets */
/* This is inelegant but simple and functional */ /* This is inelegant but simple and functional */
...@@ -277,7 +278,9 @@ void SoutDialog::updateMRL() ...@@ -277,7 +278,9 @@ void SoutDialog::updateMRL()
mrl.append( qfu( " :no-sout-standard-sap" ) ); 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" ); mrl.append( " :sout-keep" );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment