No subject


Wed Aug 5 14:32:43 CEST 2015


-- 
Xtophe

--AhhlLboLdkugWU4S
Content-Type: message/rfc822
Content-Disposition: inline

Return-Path: <bounces+20061125-xtophe=nxtelevision.com at packages.qa.debian.org>
X-Original-To: xtophe at nxtelevision.com
Delivered-To: xtophe at nxtelevision.com
Received: from durga.via.ecp.fr (durga.via.ecp.fr [138.195.130.75])
	by nxtelevision.com (Postfix) with ESMTP id 4FEB46BEF3
	for <xtophe at nxtelevision.com>; Sat, 25 Nov 2006 18:36:01 +0100 (CET)
Received: from localhost (durga.via.ecp.fr [127.0.0.1])
	by durga.via.ecp.fr (Postfix) with ESMTP id 446612B1B5
	for <xtophe at nxtelevision.com>; Sat, 25 Nov 2006 18:36:01 +0100 (CET)
Received: from durga.via.ecp.fr ([127.0.0.1])
	by localhost (durga [127.0.0.1]) (amavisd-new, port 10024) with ESMTP
	id 08786-61 for <xtophe at nxtelevision.com>;
	Sat, 25 Nov 2006 18:36:01 +0100 (CET)
Received-SPF: spf-none
Received: from master.debian.org (master.debian.org [70.103.162.29])
	by durga.via.ecp.fr (Postfix) with ESMTP id D41D62A009
	for <xtophe at nxtelevision.com>; Sat, 25 Nov 2006 18:36:00 +0100 (CET)
Received: from qa by master.debian.org with local (Exim 4.50)
	id 1Go1RW-0000kh-NY
	for xtophe at nxtelevision.com; Sat, 25 Nov 2006 17:35:59 +0000
Received: from spohr.debian.org ([140.211.166.43] ident=Debian-exim) by
 master.debian.org with esmtp (Exim 4.50) id 1Go0d2-0003CP-M7 for
 vlc at packages.qa.debian.org; Sat, 25 Nov 2006 16:43:49 +0000
Received: from debbugs by spohr.debian.org with local (Exim 4.50) id
 1Go0Sh-00021m-7f; Sat, 25 Nov 2006 08:33:07 -0800
X-Loop: owner at bugs.debian.org
Subject: Bug#400346: parse SAP HTTP announcements
Reply-To: Guido Guenther <agx at sigxcpu.org>, 400346 at bugs.debian.org
Resent-From: Guido Guenther <agx at sigxcpu.org>
Resent-To: debian-bugs-dist at lists.debian.org
Resent-Cc: Sam Hocevar (Debian packages) <sam+deb at zoy.org>
Resent-Date: Sat, 25 Nov 2006 16:33:02 +0000
Resent-Message-Id: <handler.400346.B.116447105518310 at bugs.debian.org>
X-Debian-PR-Message: report 400346
X-Debian-PR-Package: vlc
X-Debian-PR-Keywords: patch
X-Debian-PR-Source: vlc
Received: via spool by submit at bugs.debian.org id=B.116447105518310 (code B
 ref -1); Sat, 25 Nov 2006 16:33:02 +0000
Received: (at submit) by bugs.debian.org; 25 Nov 2006 16:10:55 +0000
Received: from honk1.physik.uni-konstanz.de ([134.34.140.224]) by
 spohr.debian.org with esmtp (Exim 4.50) id 1Go03O-0001oZ-Ce for
 submit at bugs.debian.org; Sat, 25 Nov 2006 08:07:08 -0800
Received: from localhost (localhost.localnet [127.0.0.1]) by
 honk1.physik.uni-konstanz.de (Postfix) with ESMTP id 1D78B3A994 for
 <submit at bugs.debian.org>; Sat, 25 Nov 2006 17:06:00 +0100 (CET)
Received: from honk1.physik.uni-konstanz.de ([127.0.0.1]) by localhost
 (honk [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 29407-16 for
 <submit at bugs.debian.org>; Sat, 25 Nov 2006 17:05:59 +0100 (CET)
Received: from bogon.sigxcpu.org (xdsl-87-78-20-2.netcologne.de
 [87.78.20.2]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
 (No client certificate requested) by honk1.physik.uni-konstanz.de
 (Postfix) with ESMTP id F08063A993 for <submit at bugs.debian.org>;
 Sat, 25 Nov 2006 17:05:58 +0100 (CET)
Received: by bogon.sigxcpu.org (Postfix, from userid 1000) id 2DFBF11E552;
 Sat, 25 Nov 2006 17:05:20 +0100 (CET)
Date: Sat, 25 Nov 2006 17:05:19 +0100
From: Guido Guenther <agx at sigxcpu.org>
To: Debian Bug Tracking System <submit at bugs.debian.org>
Message-Id: <20061125160519.GA5071 at bogon.ms20.nix>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="VS++wcV0S1rZb1Fb"
Content-Disposition: inline
X-Reportbug-Version: 3.31
User-Agent: Mutt/1.5.13 (2006-08-11)
X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at honk.physik.uni-konstanz.de
Delivered-To: submit at bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02
 (1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Level:
X-Spam-Status: No, hits=-8.0 required=4.0 tests=BAYES_00,HAS_PACKAGE
 autolearn=no version=2.60-bugs.debian.org_2005_01_02
Resent-Sender: Debian BTS <debbugs at bugs.debian.org>
Resent-Date: Sat, 25 Nov 2006 08:33:07 -0800
Delivered-To: vlc at packages.qa.debian.org
Precedence: list
X-Loop: vlc at packages.qa.debian.org
X-PTS-Package: vlc
X-PTS-Keyword: bts
X-Unsubscribe: echo 'unsubscribe vlc' | mail pts at qa.debian.org
X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at via.ecp.fr


--VS++wcV0S1rZb1Fb
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Package: vlc
Version: 0.8.6-svn20061012.debian-1
Severity: normal
Tags: patch

Hi,
currently when using SAP to announce HTTP Streams the URL is silently
being dropped (encoded in the http-path attribute). The attached patch
fetches the http-path attribute if available an appends it to the
generated URI.
Please apply,
 -- Guido


-- System Information:
Debian Release: 4.0
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: powerpc (ppc)
Shell:  /bin/sh linked to /bin/dash
Kernel: Linux 2.6.19-rc6-gf67d5831-dirty
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)


--VS++wcV0S1rZb1Fb
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="098-sap-http.diff"

diff --git a/modules/services_discovery/sap.c b/modules/services_discovery/sap.c
index c3b652a..35fa7c2 100644
--- a/modules/services_discovery/sap.c
+++ b/modules/services_discovery/sap.c
@@ -916,6 +917,7 @@ static int ParseConnection( vlc_object_t
     char *psz_parse = NULL;
     char *psz_uri = NULL;
     char *psz_proto = NULL;
+    char *psz_path = NULL;
     char psz_source[256];
     int i_port = 0;
 
@@ -1061,7 +1063,11 @@ static int ParseConnection( vlc_object_t
         psz_proto = strdup( "udp" );
     }
 
-    /* FIXME: HTTP support */
+    /* HTTP support */
+    if( psz_proto && !strncasecmp( psz_proto, "HTTP", 4 ) )
+	psz_path = GetAttribute( p_sdp, "http-path");
+    if( psz_path == NULL )
+	psz_path="";
 
     if( i_port == 0 )
     {
@@ -1074,8 +1080,8 @@ static int ParseConnection( vlc_object_t
 
     if( psz_parse ) sscanf( psz_parse, " incl IN IP%*s %*s %255s ", psz_source);
 
-    asprintf( &p_sdp->psz_uri, "%s://%s@%s:%i", psz_proto, psz_source,
-              psz_uri, i_port );
+    asprintf( &p_sdp->psz_uri, "%s://%s@%s:%i%s", psz_proto, psz_source,
+              psz_uri, i_port, psz_path );
 
     FREE( psz_uri );
     FREE( psz_proto );

--VS++wcV0S1rZb1Fb--



--AhhlLboLdkugWU4S--

-- 
This is the vlc-devel mailing-list, see http://www.videolan.org/vlc/
To unsubscribe, please read http://developers.videolan.org/lists.html



More information about the vlc-devel mailing list