Commit a60bd74c authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Qt4: implement SAP in the streaming wizard

parent fe5ee97d
...@@ -245,10 +245,29 @@ void SoutDialog::updateMRL() ...@@ -245,10 +245,29 @@ void SoutDialog::updateMRL()
mrl = smrl.getMrl(); mrl = smrl.getMrl();
/* FIXME, deal with SAP if( ui.sap->isChecked() )
sout.b_sap = ui.sap->isChecked(); {
sout.psz_group = strdup( qtu( ui.sapGroup->text() ) ); QString group = ui.sapGroup->text();
sout.psz_name = strdup( qtu( ui.sapName->text() ) ); */ QString name = ui.sapName->text();
/* FIXME: This sucks. We should really return a QStringList instead of
* (mis)quoting, concatainating and split input item paramters. */
name = name.replace( " ", " " );
group = group.replace( " ", " " );
/* We need to add options for both standard and rtp targets */
/* This is inelegant but simple and functional */
mrl.append( qfu( " :sout-rtp-sap" ) );
mrl.append( qfu( " :sout-rtp-name=" ) + name );
mrl.append( qfu( " :sout-standard-sap" ) );
mrl.append( qfu( " :sout-standard-name=" ) + name );
mrl.append( qfu( " :sout-standard-group=" ) + group );
}
else
{
mrl.append( qfu( " :no-sout-rtp-sap" ) );
mrl.append( qfu( " :no-sout-standard-sap" ) );
}
if( ui.soutAll->isChecked() ) mrl.append( " :sout-all" ); if( ui.soutAll->isChecked() ) mrl.append( " :sout-all" );
......
...@@ -182,6 +182,8 @@ static int Open( vlc_object_t *p_this ) ...@@ -182,6 +182,8 @@ static int Open( vlc_object_t *p_this )
const char *psz_mux_byext = NULL; const char *psz_mux_byext = NULL;
(void)p_stream->psz_object_name;
config_ChainParse( p_stream, SOUT_CFG_PREFIX, ppsz_sout_options, config_ChainParse( p_stream, SOUT_CFG_PREFIX, ppsz_sout_options,
p_stream->p_cfg ); p_stream->p_cfg );
......
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