]> git.sesse.net Git - vlc/commitdiff
modules/misc/sap.c:
authorSigmund Augdal Helberg <sigmunau@videolan.org>
Sat, 8 Nov 2003 12:25:59 +0000 (12:25 +0000)
committerSigmund Augdal Helberg <sigmunau@videolan.org>
Sat, 8 Nov 2003 12:25:59 +0000 (12:25 +0000)
 * support sap announces that use dos style linebreaks

modules/misc/sap.c

index 52417ca02d023b08c8b100ae2f48ac7607dad3e2..9348cf77e50c69a4cc3ec3e9ecac6b370ed3b7dc 100644 (file)
@@ -2,7 +2,7 @@
  * sap.c :  SAP interface module
  *****************************************************************************
  * Copyright (C) 2001 VideoLAN
- * $Id: sap.c,v 1.31 2003/11/06 09:59:45 gbazin Exp $
+ * $Id: sap.c,v 1.32 2003/11/08 12:25:59 sigmunau Exp $
  *
  * Authors: Arnaud Schauly <gitan@via.ecp.fr>
  *          ClĂ©ment Stenac <zorglub@via.ecp.fr>
@@ -599,7 +599,11 @@ static sess_descr_t *  parse_sdp( intf_thread_t * p_intf, char *p_packet )
         {
             psz_end = p_packet + strlen( p_packet );
         }
-
+        if( psz_end > p_packet && *(psz_end - 1 ) == '\r' )
+        {
+            psz_end--;
+        }
+        
         if( psz_end <= p_packet )
         {
             break;