]> git.sesse.net Git - vlc/commitdiff
Remove leading ':sout=' from strings returned by output selection dialog
authorMark Bidewell <mark.bidewell@alumni.clemson.edu>
Thu, 29 Jan 2009 00:29:38 +0000 (19:29 -0500)
committerJean-Baptiste Kempf <jb@videolan.org>
Mon, 2 Feb 2009 01:07:06 +0000 (02:07 +0100)
The leading :sout=  appears to confuse the destination parser which causes the sout to be prepended with an empty access and mux resulting in an invalid output chain.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
modules/gui/qt4/dialogs/vlm.cpp

index b8a5772b067588e52e056d1ac7ccf0459a42f90a..adaf2d29312cceb909be9e76c2346267646d67ec 100644 (file)
@@ -220,6 +220,7 @@ void VLMDialog::addVLMItem()
     int repeatnum = scherepeatnumber->value();
     int repeatdays = repeatDays->value();
     VLMAWidget * vlmAwidget;
+    outputText.remove( ":sout=" );
 
     switch( type )
     {
@@ -436,7 +437,7 @@ void VLMDialog::saveModifications()
     if( vlmObj )
     {
         vlmObj->input = ui.inputLedit->text();
-        vlmObj->output = ui.outputLedit->text();
+        vlmObj->output = ui.outputLedit->text().remove( ":sout=" );
         vlmObj->setChecked( ui.enableCheck->isChecked() );
         vlmObj->b_enabled = ui.enableCheck->isChecked();
         switch( vlmObj->type )