[vlc-devel] commit: Fix demuxdump MRL generation in Sout (Qt part of #1853 ) ( Jean-Baptiste Kempf )
git version control
git at videolan.org
Sat Aug 23 01:58:33 CEST 2008
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Fri Aug 22 16:58:43 2008 -0700| [31da28cd3ba4f66bb3be1718f9fb69d87e50a53e] | committer: Jean-Baptiste Kempf
Fix demuxdump MRL generation in Sout (Qt part of #1853 )
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=31da28cd3ba4f66bb3be1718f9fb69d87e50a53e
---
modules/gui/qt4/dialogs/sout.cpp | 23 +++++++++++++++++++++--
modules/gui/qt4/ui/sout.ui | 14 +++++++++++---
2 files changed, 32 insertions(+), 5 deletions(-)
diff --git a/modules/gui/qt4/dialogs/sout.cpp b/modules/gui/qt4/dialogs/sout.cpp
index 3b73b01..35433f1 100644
--- a/modules/gui/qt4/dialogs/sout.cpp
+++ b/modules/gui/qt4/dialogs/sout.cpp
@@ -241,10 +241,18 @@ void SoutDialog::setSTranscodeOptions( bool b_trans )
void SoutDialog::setRawOptions( bool b_raw )
{
+ ui.localOutput->setEnabled( !b_raw );
+ ui.HTTPOutput->setEnabled( !b_raw );
+ ui.MMSHOutput->setEnabled( !b_raw );
+ ui.UDPOutput->setEnabled( !b_raw );
+ ui.RTPOutput->setEnabled( !b_raw );
+ ui.IcecastOutput->setEnabled( !b_raw );
+ ui.UDPRTPLabel->setEnabled( !b_raw );
+
if( b_raw )
ui.tabWidget->setDisabled( true );
else
- SoutDialog::setOptions();
+ setOptions();
}
void SoutDialog::setOptions()
@@ -373,6 +381,7 @@ void SoutDialog::updateMRL()
sout.b_icecast = ui.IcecastOutput->isChecked();
sout.b_rtp = ui.RTPOutput->isChecked();
sout.b_udp = ui.UDPOutput->isChecked();
+ sout.b_dump = ui.rawInput->isChecked();
sout.b_sap = ui.sap->isChecked();
sout.b_all_es = ui.soutAll->isChecked();
sout.psz_vcodec = strdup( qtu( ui.vCodecBox->itemData( ui.vCodecBox->currentIndex() ).toString() ) );
@@ -424,7 +433,8 @@ void SoutDialog::updateMRL()
bool trans = false;
bool more = false;
- if ( ui.transcodeVideo->isChecked() || ui.transcodeAudio->isChecked() )
+ if ( ui.transcodeVideo->isChecked() || ui.transcodeAudio->isChecked()
+ && !ui.rawInput->isChecked() /*demuxdump speciality*/ )
{
if ( ui.transcodeVideo->isChecked() )
{
@@ -463,6 +473,15 @@ void SoutDialog::updateMRL()
mrl.append( "}" );
}
+ /* Special case for demuxdump */
+ if ( sout.b_file && sout.b_dump )
+ {
+ mrl = ":demux=dump :demuxdump-file=";
+ mrl.append( sout.psz_file );
+ }
+ else
+
+
/* Protocol output */
if ( sout.b_local || sout.b_file || sout.b_http ||
sout.b_mms || sout.b_rtp || sout.b_udp || sout.b_icecast )
diff --git a/modules/gui/qt4/ui/sout.ui b/modules/gui/qt4/ui/sout.ui
index 90e2405..2f99cd3 100644
--- a/modules/gui/qt4/ui/sout.ui
+++ b/modules/gui/qt4/ui/sout.ui
@@ -284,7 +284,7 @@
<item row="5" column="4" >
<widget class="QLineEdit" name="UDPEdit" >
<property name="enabled" >
- <bool>true</bool>
+ <bool>false</bool>
</property>
</widget>
</item>
@@ -385,7 +385,11 @@
</widget>
</item>
<item row="7" column="4" >
- <widget class="QLineEdit" name="IcecastEdit" />
+ <widget class="QLineEdit" name="IcecastEdit" >
+ <property name="enabled" >
+ <bool>false</bool>
+ </property>
+ </widget>
</item>
<item row="7" column="5" >
<widget class="QLabel" name="IcecastPortLabel" >
@@ -433,7 +437,11 @@
</widget>
</item>
<item row="8" column="4" >
- <widget class="QLineEdit" name="IcecastMountpointEdit" />
+ <widget class="QLineEdit" name="IcecastMountpointEdit" >
+ <property name="enabled" >
+ <bool>false</bool>
+ </property>
+ </widget>
</item>
<item row="8" column="5" >
<widget class="QLabel" name="IcecastNameLabel" >
More information about the vlc-devel
mailing list