Commit 10df88b6 authored by Clément Stenac's avatar Clément Stenac

Use the new SAP/SLP syntax (sap,slp,name=)

parent 7fdb58fc
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* streamout.cpp : wxWindows plugin for vlc * streamout.cpp : wxWindows plugin for vlc
***************************************************************************** *****************************************************************************
* Copyright (C) 2000-2004 VideoLAN * Copyright (C) 2000-2004 VideoLAN
* $Id: streamout.cpp,v 1.43 2004/02/28 19:30:04 gbazin Exp $ * $Id$
* *
* Authors: Gildas Bazin <gbazin@netcourrier.com> * Authors: Gildas Bazin <gbazin@netcourrier.com>
* *
...@@ -357,18 +357,27 @@ void SoutDialog::UpdateMRL() ...@@ -357,18 +357,27 @@ void SoutDialog::UpdateMRL()
/* SAP only if UDP */ /* SAP only if UDP */
if( sap_checkbox->IsChecked() ) if( sap_checkbox->IsChecked() )
{ {
dup_opts += wxT(",sap=\""); dup_opts += wxT(",sap");
if( ! announce_addr->GetLineText(0).IsEmpty() )
{
dup_opts += wxT(",name=\"");
dup_opts += announce_addr->GetLineText(0); dup_opts += announce_addr->GetLineText(0);
dup_opts += wxT("\""); dup_opts += wxT("\"");
} }
}
/* SLP only if UDP */ /* SLP only if UDP */
if( slp_checkbox->IsChecked() ) if( slp_checkbox->IsChecked() )
{ {
dup_opts += wxT(",slp=\""); dup_opts += wxT(",slp");
if( ! sap_checkbox->IsChecked() &&
! announce_addr->GetLineText(0).IsEmpty() )
{
dup_opts += wxT(",name=\"");
dup_opts += announce_addr->GetLineText(0); dup_opts += announce_addr->GetLineText(0);
dup_opts += wxT("\""); dup_opts += wxT("\"");
} }
}
dup_opts += wxT("}"); dup_opts += wxT("}");
} }
......
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