{
sout_access_out_t *p_grab;
const char *psz_rtpmap;
- char url[NI_MAXHOST + 8], access[17], psz_ttl[5], ipv;
+ char url[NI_MAXHOST + 8], access[22], psz_ttl[5], ipv;
if( b_rtsp )
{
/* create the access out */
if( p_sys->i_ttl > 0 )
{
- sprintf( access, "udp{raw,ttl=%d}", p_sys->i_ttl );
+ sprintf( access, "udp{raw,rtcp,ttl=%d}", p_sys->i_ttl );
}
else
{
- sprintf( access, "udp{raw}" );
+ sprintf( access, "udp{raw,rtcp}" );
}
/* IPv6 needs brackets if not already present */
if( p_sys->psz_destination )
{
- char access[17];
+ char access[22];
char url[NI_MAXHOST + 8];
/* first try to create the access out */
if( p_sys->i_ttl )
{
- snprintf( access, sizeof( access ), "udp{raw,ttl=%d}",
+ snprintf( access, sizeof( access ), "udp{raw,rtcp,ttl=%d}",
p_sys->i_ttl );
access[sizeof( access ) - 1] = '\0';
}
else
- strcpy( access, "udp{raw}" );
+ strcpy( access, "udp{raw,rtcp}" );
snprintf( url, sizeof( url ), (( p_sys->psz_destination[0] != '[' ) &&
strchr( p_sys->psz_destination, ':' )) ? "[%s]:%d" : "%s:%d",
else if( strstr( psz_transport, "unicast" ) && strstr( psz_transport, "client_port=" ) )
{
int i_port = atoi( strstr( psz_transport, "client_port=" ) + strlen("client_port=") );
- char ip[NI_MAXNUMERICHOST], psz_access[17], psz_url[NI_MAXNUMERICHOST + 8];
+ char ip[NI_MAXNUMERICHOST], psz_access[22], psz_url[NI_MAXNUMERICHOST + 8];
sout_access_out_t *p_access;
/* first try to create the access out */
if( p_sys->i_ttl )
snprintf( psz_access, sizeof( psz_access ),
- "udp{raw,ttl=%d}", p_sys->i_ttl );
+ "udp{raw,rtcp,ttl=%d}", p_sys->i_ttl );
else
- strlcpy( psz_access, "udp{raw}", sizeof( psz_access ) );
+ strcpy( psz_access, "udp{raw,rtcp}" );
snprintf( psz_url, sizeof( psz_url ),
( strchr( ip, ':' ) != NULL ) ? "[%s]:%d" : "%s:%d",