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

Correctly pass all the arguments of v4l/dshow when transcoding.

Close #1998.
(cherry picked from commit fd3426910f6ffa1db76659974ff54ba24363217a)
(cherry picked from commit 56c38ae8d2f4a31aa2145997a7bb603a50a11811)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent d7baba2f
...@@ -349,9 +349,30 @@ void OpenDialog::stream( bool b_transcode_only ) ...@@ -349,9 +349,30 @@ void OpenDialog::stream( bool b_transcode_only )
{ {
mrl = ui.advancedLineInput->text(); mrl = ui.advancedLineInput->text();
toggleVisible(); toggleVisible();
/* Separate the entries */
QStringList listMRL = SeparateEntries( mrl ); QStringList listMRL = SeparateEntries( mrl );
/* We can only take the first entry since we have no idea what
to do with many files ? Gather ? */
if( listMRL.size() > 0 ) if( listMRL.size() > 0 )
{
/* First item */
QString soutMRL = listMRL[0];
/* Keep all the :xxx options because they are needed see v4l and dshow */
for( int i = 1; i < listMRL.size(); i++ )
{
if( listMRL[i].at( 0 ) == ':' )
soutMRL.append( " " + listMRL[i] );
else
break;
}
/* Dbg and send :D */
msg_Dbg( p_intf, "MRL passed to the Sout: %s", qtu( soutMRL ) );
THEDP->streamingDialog( this, listMRL[0], b_transcode_only ); THEDP->streamingDialog( this, listMRL[0], b_transcode_only );
}
} }
/* Update the MRL */ /* Update the MRL */
......
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