Commit 655f6183 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Qt4: separate native RTP from RTP/TS

parent 94038d2f
...@@ -265,7 +265,8 @@ QString UDPDestBox::getMRL( const QString& mux ) ...@@ -265,7 +265,8 @@ QString UDPDestBox::getMRL( const QString& mux )
RTPDestBox::RTPDestBox( QWidget *_parent ) : VirtualDestBox( _parent ) RTPDestBox::RTPDestBox( QWidget *_parent, const char *_mux )
: VirtualDestBox( _parent ), mux( _mux )
{ {
QGridLayout *layout = new QGridLayout( this ); QGridLayout *layout = new QGridLayout( this );
...@@ -295,7 +296,7 @@ RTPDestBox::RTPDestBox( QWidget *_parent ) : VirtualDestBox( _parent ) ...@@ -295,7 +296,7 @@ RTPDestBox::RTPDestBox( QWidget *_parent ) : VirtualDestBox( _parent )
CT( RTPEdit ); CT( RTPEdit );
} }
QString RTPDestBox::getMRL( const QString& mux ) QString RTPDestBox::getMRL( const QString& )
{ {
if( RTPEdit->text().isEmpty() ) return ""; if( RTPEdit->text().isEmpty() ) return "";
...@@ -303,8 +304,8 @@ QString RTPDestBox::getMRL( const QString& mux ) ...@@ -303,8 +304,8 @@ QString RTPDestBox::getMRL( const QString& mux )
m.begin( "rtp" ); m.begin( "rtp" );
m.option( "dst", RTPEdit->text() ); m.option( "dst", RTPEdit->text() );
m.option( "port", RTPPort->value() ); m.option( "port", RTPPort->value() );
if( !mux.isEmpty() ) if( mux != NULL )
m.option( "mux", mux ); m.option( "mux", qfu( mux ) );
m.end(); m.end();
return m.getMrl(); return m.getMrl();
......
...@@ -105,11 +105,12 @@ class RTPDestBox: public VirtualDestBox ...@@ -105,11 +105,12 @@ class RTPDestBox: public VirtualDestBox
{ {
Q_OBJECT; Q_OBJECT;
public: public:
RTPDestBox( QWidget *_parent = NULL ); RTPDestBox( QWidget *_parent = NULL, const char *mux = NULL );
virtual QString getMRL( const QString& ); virtual QString getMRL( const QString& );
private: private:
QLineEdit *RTPEdit; QLineEdit *RTPEdit;
QSpinBox *RTPPort; QSpinBox *RTPPort;
const char *mux;
}; };
class ICEDestBox: public VirtualDestBox class ICEDestBox: public VirtualDestBox
......
...@@ -74,7 +74,8 @@ SoutDialog::SoutDialog( QWidget *parent, intf_thread_t *_p_intf, const QString& ...@@ -74,7 +74,8 @@ SoutDialog::SoutDialog( QWidget *parent, intf_thread_t *_p_intf, const QString&
ui.destBox->addItem( qtr( "File" ) ); ui.destBox->addItem( qtr( "File" ) );
ui.destBox->addItem( "HTTP" ); ui.destBox->addItem( "HTTP" );
ui.destBox->addItem( "MS-WMSP (MMSH)" ); ui.destBox->addItem( "MS-WMSP (MMSH)" );
ui.destBox->addItem( "RTP / Transport Stream" ); ui.destBox->addItem( "RTP / MPEG Transport Stream" );
ui.destBox->addItem( "RTP Audio/Video Profile" );
ui.destBox->addItem( "UDP (legacy)" ); ui.destBox->addItem( "UDP (legacy)" );
ui.destBox->addItem( "IceCast" ); ui.destBox->addItem( "IceCast" );
...@@ -158,14 +159,18 @@ void SoutDialog::addDest( ) ...@@ -158,14 +159,18 @@ void SoutDialog::addDest( )
caption = qfu( "WMSP" ); caption = qfu( "WMSP" );
break; break;
case 3: case 3:
db = new RTPDestBox( this ); db = new RTPDestBox( this, "ts" );
caption = "RTP/TS"; caption = "RTP/TS";
break; break;
case 4: case 4:
db = new RTPDestBox( this );
caption = "RTP/AVP";
break;
case 5:
db = new UDPDestBox( this ); db = new UDPDestBox( this );
caption = "UDP"; caption = "UDP";
break; break;
case 5: case 6:
db = new ICEDestBox( this ); db = new ICEDestBox( this );
caption = "Icecast"; caption = "Icecast";
break; break;
......
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