[vlc-devel] commit: Remove leading ':sout=' from strings returned by output selection dialog (Mark Bidewell )

git version control git at videolan.org
Mon Feb 2 02:07:19 CET 2009


vlc | branch: master | Mark Bidewell <mark.bidewell at alumni.clemson.edu> | Wed Jan 28 19:29:38 2009 -0500| [0c52acaeed113f6c2365485a1a7098e194f70b5b] | committer: Jean-Baptiste Kempf 

Remove leading ':sout=' from strings returned by output selection dialog

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 at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0c52acaeed113f6c2365485a1a7098e194f70b5b
---

 modules/gui/qt4/dialogs/vlm.cpp |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/modules/gui/qt4/dialogs/vlm.cpp b/modules/gui/qt4/dialogs/vlm.cpp
index b8a5772..adaf2d2 100644
--- a/modules/gui/qt4/dialogs/vlm.cpp
+++ b/modules/gui/qt4/dialogs/vlm.cpp
@@ -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 )




More information about the vlc-devel mailing list