modules/misc/sap.c:

 * support sap announces that use dos style linebreaks
parent 2ad72194
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* sap.c : SAP interface module * sap.c : SAP interface module
***************************************************************************** *****************************************************************************
* Copyright (C) 2001 VideoLAN * 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> * Authors: Arnaud Schauly <gitan@via.ecp.fr>
* Clment Stenac <zorglub@via.ecp.fr> * Clment Stenac <zorglub@via.ecp.fr>
...@@ -599,6 +599,10 @@ static sess_descr_t * parse_sdp( intf_thread_t * p_intf, char *p_packet ) ...@@ -599,6 +599,10 @@ static sess_descr_t * parse_sdp( intf_thread_t * p_intf, char *p_packet )
{ {
psz_end = p_packet + strlen( 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 ) if( psz_end <= p_packet )
{ {
......
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