Commit bce50f87 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt: fix some parsing of SOut options.

Close #1853
parent 4386f499
...@@ -124,7 +124,7 @@ void ConvertDialog::close() ...@@ -124,7 +124,7 @@ void ConvertDialog::close()
if( dumpBox->isChecked() ) if( dumpBox->isChecked() )
{ {
mrl = "demux=dump :demuxdump-file" + fileLine->text(); mrl = "demux=dump :demuxdump-file=" + fileLine->text();
} }
else else
{ {
......
/***************************************************************************** /*****************************************************************************
* dialogs_provider.cpp : Dialog Provider * dialogs_provider.cpp : Dialog Provider
***************************************************************************** *****************************************************************************
* Copyright (C) 2006-2008 the VideoLAN team * Copyright (C) 2006-2009 the VideoLAN team
* $Id$ * $Id$
* *
* Authors: Clément Stenac <zorglub@videolan.org> * Authors: Clément Stenac <zorglub@videolan.org>
...@@ -606,6 +606,8 @@ void DialogsProvider::streamingDialog( QWidget *parent, ...@@ -606,6 +606,8 @@ void DialogsProvider::streamingDialog( QWidget *parent,
/* Get SoutMRL */ /* Get SoutMRL */
if( !EMPTY_STR( psz_soutoption ) ) if( !EMPTY_STR( psz_soutoption ) )
{ {
options += QString( psz_soutoption ).split( " :");
/* Create Input */ /* Create Input */
input_item_t *p_input; input_item_t *p_input;
p_input = input_item_New( p_intf, qtu( mrl ), _("Streaming") ); p_input = input_item_New( p_intf, qtu( mrl ), _("Streaming") );
...@@ -618,13 +620,10 @@ void DialogsProvider::streamingDialog( QWidget *parent, ...@@ -618,13 +620,10 @@ void DialogsProvider::streamingDialog( QWidget *parent,
{ {
input_item_AddOption( p_input, qtu( qs ), input_item_AddOption( p_input, qtu( qs ),
VLC_INPUT_OPTION_TRUSTED ); VLC_INPUT_OPTION_TRUSTED );
msg_Dbg( p_intf, "Adding option: %s", qtu( qs ) );
} }
} }
/* Add SoutMRL */
msg_Dbg( p_intf, "Streaming MRL is: %s", psz_soutoption );
input_item_AddOption( p_input, psz_soutoption, VLC_INPUT_OPTION_TRUSTED );
/* Switch between enqueuing and starting the item */ /* Switch between enqueuing and starting the item */
/* FIXME: playlist_AddInput() can fail */ /* FIXME: playlist_AddInput() can fail */
playlist_AddInput( THEPL, p_input, playlist_AddInput( THEPL, p_input,
......
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