]> git.sesse.net Git - vlc/commitdiff
Qt4: separate native RTP from RTP/TS
authorRémi Denis-Courmont <remi@remlab.net>
Mon, 30 Nov 2009 20:50:09 +0000 (22:50 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Mon, 30 Nov 2009 20:50:09 +0000 (22:50 +0200)
modules/gui/qt4/components/sout/sout_widgets.cpp
modules/gui/qt4/components/sout/sout_widgets.hpp
modules/gui/qt4/dialogs/sout.cpp

index ca10b76fc4694639b9507d5c14afa6241820c534..98154fd96ef32660c3829131fbdd203c3d0e1fa3 100644 (file)
@@ -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 );
 
@@ -295,7 +296,7 @@ RTPDestBox::RTPDestBox( QWidget *_parent ) : VirtualDestBox( _parent )
     CT( RTPEdit );
 }
 
-QString RTPDestBox::getMRL( const QString& mux )
+QString RTPDestBox::getMRL( const QString& )
 {
     if( RTPEdit->text().isEmpty() ) return "";
 
@@ -303,8 +304,8 @@ QString RTPDestBox::getMRL( const QString& mux )
     m.begin( "rtp" );
     m.option( "dst", RTPEdit->text() );
     m.option( "port", RTPPort->value() );
-    if( !mux.isEmpty() )
-        m.option( "mux", mux );
+    if( mux != NULL )
+        m.option( "mux", qfu( mux ) );
     m.end();
 
     return m.getMrl();
index 59dfa72eb6fb09e215451b0628a4b29c4b94fbf0..d2042cda38b0b4e8af764438ec598d86d444e97c 100644 (file)
@@ -105,11 +105,12 @@ class RTPDestBox: public VirtualDestBox
 {
     Q_OBJECT;
     public:
-        RTPDestBox( QWidget *_parent = NULL );
+        RTPDestBox( QWidget *_parent = NULL, const char *mux = NULL );
         virtual QString getMRL( const QString& );
     private:
         QLineEdit *RTPEdit;
         QSpinBox *RTPPort;
+        const char *mux;
 };
 
 class ICEDestBox: public VirtualDestBox
index 6fe140aad3e25bc0c7c8fc703dbd3c47b14d6b78..9410fccaf3bc6ab01d8957c9670a3da3e000e20e 100644 (file)
@@ -74,7 +74,8 @@ SoutDialog::SoutDialog( QWidget *parent, intf_thread_t *_p_intf, const QString&
     ui.destBox->addItem( qtr( "File" ) );
     ui.destBox->addItem( "HTTP" );
     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( "IceCast" );
 
@@ -158,14 +159,18 @@ void SoutDialog::addDest( )
             caption = qfu( "WMSP" );
             break;
         case 3:
-            db = new RTPDestBox( this );
+            db = new RTPDestBox( this, "ts" );
             caption = "RTP/TS";
             break;
         case 4:
+            db = new RTPDestBox( this );
+            caption = "RTP/AVP";
+            break;
+        case 5:
             db = new UDPDestBox( this );
             caption = "UDP";
             break;
-        case 5:
+        case 6:
             db = new ICEDestBox( this );
             caption = "Icecast";
             break;