Commit 1cd83c62 authored by Clément Stenac's avatar Clément Stenac

Always use the same slp service

Compilation fix
parent b24affc1
......@@ -2,7 +2,7 @@
* slp.cpp : SLP registration class
****************************************************************************
* Copyright (C) 1998-2003 VideoLAN
* $Id: slp.cpp,v 1.2 2003/08/12 15:59:19 zorglub Exp $
* $Id: slp.cpp,v 1.3 2003/09/14 16:40:47 zorglub Exp $
*
* Authors: Clment Stenac <zorglub@via.ecp.fr>
*
......@@ -30,6 +30,8 @@
#include <string>
#include <vector>
using namespace std;
#include "program.h"
#include "config.h"
......@@ -66,7 +68,16 @@ char * BuildService(Program *p)
string url="";
unsigned int i=0;
string head = "service:" + p->GetName() + ".videolan://";
string head = "service:vlc.services.videolan://";
if(p->IsHTTP() )
{
url += "http://";
}
else
{
url+="udp:@";
}
if(p->GetIPVersion() == 6)
{
......
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