Commit 66ecba4d authored by Laurent Aimar's avatar Laurent Aimar

* sdp: do not register 'rtp' name for access.

parent b3818fbe
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* sdp.c: SDP parser and builtin UDP/RTP/RTSP * sdp.c: SDP parser and builtin UDP/RTP/RTSP
***************************************************************************** *****************************************************************************
* Copyright (C) 2001 VideoLAN * Copyright (C) 2001 VideoLAN
* $Id: sdp.c,v 1.6 2003/09/08 07:36:34 fenrir Exp $ * $Id: sdp.c,v 1.7 2003/09/08 07:38:30 fenrir Exp $
* *
* Authors: Laurent Aimar <fenrir@via.ecp.fr> * Authors: Laurent Aimar <fenrir@via.ecp.fr>
* *
...@@ -50,7 +50,7 @@ vlc_module_begin(); ...@@ -50,7 +50,7 @@ vlc_module_begin();
add_submodule(); add_submodule();
set_description( _("RTSP/RTP describe") ); set_description( _("RTSP/RTP describe") );
add_shortcut( "rtp" ); add_shortcut( "rtp_sdp" );
add_shortcut( "rtsp" ); add_shortcut( "rtsp" );
set_capability( "access", 0 ); set_capability( "access", 0 );
set_callbacks( DescribeOpen, DescribeClose ); set_callbacks( DescribeOpen, DescribeClose );
...@@ -105,7 +105,7 @@ static int DescribeOpen( vlc_object_t *p_this ) ...@@ -105,7 +105,7 @@ static int DescribeOpen( vlc_object_t *p_this )
if( p_input->psz_access == NULL || if( p_input->psz_access == NULL ||
( strcmp( p_input->psz_access, "rtsp" ) && ( strcmp( p_input->psz_access, "rtsp" ) &&
strcmp( p_input->psz_access, "rtp" ) ) ) strcmp( p_input->psz_access, "rtp_sdp" ) ) )
{ {
msg_Dbg( p_input, "invalid access name" ); msg_Dbg( p_input, "invalid access name" );
return VLC_EGENERIC; return VLC_EGENERIC;
...@@ -115,7 +115,14 @@ static int DescribeOpen( vlc_object_t *p_this ) ...@@ -115,7 +115,14 @@ static int DescribeOpen( vlc_object_t *p_this )
* something like rtsp/<demuxer>:// */ * something like rtsp/<demuxer>:// */
psz_uri = malloc( strlen( p_input->psz_access ) + psz_uri = malloc( strlen( p_input->psz_access ) +
strlen( p_input->psz_name ) + 4 ); strlen( p_input->psz_name ) + 4 );
if( !strcmp( p_input->psz_access, "rtp_sdp" ) )
{
sprintf( psz_uri, "rtp://%s", p_input->psz_name );
}
else
{
sprintf( psz_uri, "%s://%s", p_input->psz_access, p_input->psz_name ); sprintf( psz_uri, "%s://%s", p_input->psz_access, p_input->psz_name );
}
msg_Dbg( p_input, "describing %s", psz_uri ); msg_Dbg( p_input, "describing %s", psz_uri );
......
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