-#if 0
-void SoutDialog::ParseMRL()
-{
- /* Initialise MRL value */
- char *psz_sout = config_GetPsz( p_intf, "sout" );
- if( psz_sout )
- {
- mrl = wxU(psz_sout);
- free( psz_sout );
- }
-
- /* Parse the MRL */
- wxString access = mrl.BeforeFirst( wxT('/') );
- wxString encapsulation = mrl.BeforeFirst( wxT(':') ).AfterFirst(wxT('/'));
-
- if( !access.Cmp( wxT("http") ) )
- {
- i_access_type = HTTP_ACCESS_OUT;
- }
- else if( !access.Cmp( wxT("udp") ) )
- {
- i_access_type = UDP_ACCESS_OUT;
- }
- else if( !access.Cmp( wxT("rtp") ) )
- {
- i_access_type = RTP_ACCESS_OUT;
- }
- else
- {
- i_access_type = FILE_ACCESS_OUT;
- }
-
- if( !encapsulation.Cmp( wxT("ps") ) )
- {
- i_encapsulation_type = PS_ENCAPSULATION;
- }
- else if( !encapsulation.Cmp( wxT("avi") ) )
- {
- i_encapsulation_type = AVI_ENCAPSULATION;
- }
- else if( !encapsulation.Cmp( wxT("ogg") ) )
- {
- i_encapsulation_type = OGG_ENCAPSULATION;
- }
- else
- {
- i_encapsulation_type = TS_ENCAPSULATION;
- }
-
- wxString second_part = mrl.AfterFirst( wxT(':') );
-
- if( i_access_type == FILE_ACCESS_OUT )
- {
- /* The whole second part of the MRL is the filename */
- file_combo->SetValue( second_part );
- }
- else
- {
- /* we've got address:port */
- wxString address = second_part.BeforeLast( wxT(':') );
- net_addr->SetValue( address );
-
- long int i_port;
- wxString port = second_part.AfterLast( wxT(':') );
- if( port.ToLong( &i_port ) )
- {
- net_port->SetValue( i_port );
- }
- else
- {
- net_port->SetValue( config_GetInt( p_intf, "server-port" ) );
- }
- }
-
- /* Update access output panel */
- wxCommandEvent dummy_event;
- dummy_event.SetId( AccessType1_Event + i_access_type );
- OnAccessTypeChange( dummy_event );
-
- /* Update encapsulation output panel */
- dummy_event.SetId( EncapsulationRadio1_Event + i_encapsulation_type );
- OnEncapsulationChange( dummy_event );
-}
-#endif
-