[vlc-devel] commit: Correctly parse the media type (Fix #1552) (Christophe Mutricy )

git version control git at videolan.org
Thu Apr 17 20:56:58 CEST 2008


vlc | branch: 0.8.6-bugfix | Christophe Mutricy <xtophe at videolan.org> | Wed Apr 16 23:42:15 2008 +0100| [5e015eeedede726d17ab542c3f3a20296c5d411b]

Correctly parse the media type (Fix #1552)

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=5e015eeedede726d17ab542c3f3a20296c5d411b
---

 modules/services_discovery/sap.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/modules/services_discovery/sap.c b/modules/services_discovery/sap.c
index 797099e..3d664de 100644
--- a/modules/services_discovery/sap.c
+++ b/modules/services_discovery/sap.c
@@ -2,7 +2,7 @@
  * sap.c :  SAP interface module
  *****************************************************************************
  * Copyright (C) 2004-2005 the VideoLAN team
- * $Id$
+ * $Id: 797099ef1b4316d247401fb5e40a2edebe0e9f48 $
  *
  * Authors: Clément Stenac <zorglub at videolan.org>
  *
@@ -1045,6 +1045,7 @@ static int ParseConnection( vlc_object_t *p_obj, sdp_t *p_sdp )
             if( !strcmp( psz_parse, "RTP/AVP" ) )
             {
                 psz_proto = "rtp";
+                psz_parse = psz_eof + 1;
                 p_sdp->i_media_type = atoi( psz_parse );
             }
             else




More information about the vlc-devel mailing list