if( p_sys->p_db == NULL || i_ret )
{
- msg_Err( p_access, "The DAAP services_discovery module must be enabled" );
+ msg_Err( p_access, "the DAAP services_discovery module must be enabled" );
return VLC_EGENERIC;
}
}
- msg_Dbg( p_access, "Downloading %s song %i (db %i)",
+ msg_Dbg( p_access, "downloading %s song %i (db %i)",
p_sys->songdata.songformat,
p_sys->i_song, p_sys->p_host->i_database_id );
p_sys->songdata.songformat,
&(p_sys->song) );
- msg_Dbg( p_access, "Finished downloading, read %i bytes (ret %i)",
+ msg_Dbg( p_access, "finished downloading, read %i bytes (ret %i)",
p_sys->song.size, i_ret );
p_access->info.i_size = p_sys->song.size;
/*****************************************************************************
* Module descriptor
*****************************************************************************/
-#define SAP_ADDR_TEXT N_( "SAP multicast address" )
-#define SAP_ADDR_LONGTEXT N_( "Listen for SAP announcements on another address" )
#define SAP_IPV4_TEXT N_( "IPv4-SAP listening" )
#define SAP_IPV4_LONGTEXT N_( \
"Set this if you want the SAP module to listen to IPv4 announcements " \
set_category( CAT_PLAYLIST );
set_subcategory( SUBCAT_PLAYLIST_SD );
- add_string( "sap-addr", NULL, NULL,
- SAP_ADDR_TEXT, SAP_ADDR_LONGTEXT, VLC_TRUE );
add_bool( "sap-ipv4", 1 , NULL,
SAP_IPV4_TEXT,SAP_IPV4_LONGTEXT, VLC_TRUE );
add_bool( "sap-ipv6", 1 , NULL,
SAP_CACHE_TEXT,SAP_CACHE_LONGTEXT, VLC_TRUE );
add_bool( "sap-timeshift", 0 , NULL,
SAP_TIMESHIFT_TEXT,SAP_TIMESHIFT_LONGTEXT, VLC_TRUE );
+ add_suppressed_string( "sap-addr" );
set_capability( "services_discovery", 0 );
set_callbacks( Open, Close );
free( psz_sdp );
if( p_sdp ) FreeSDP( p_sdp );
stream_Seek( p_demux->s, 0 );
- return VLC_EGENERIC;
+ return VLC_EGENERIC;
}
/*****************************************************************************
}
}
- psz_addr = var_CreateGetString( p_sd, "sap-addr" );
- if( psz_addr && *psz_addr )
- {
- InitSocket( p_sd, psz_addr, SAP_PORT );
- }
-
if( p_sd->p_sys->i_fd == 0 )
{
msg_Err( p_sd, "unable to listen on any address" );
psz_sdp += 4;
if( i_read <= 9 )
{
- msg_Warn( p_sd, "too short SAP packet\n" );
+ msg_Warn( p_sd, "too short SAP packet" );
return VLC_EGENERIC;
}
}
psz_sdp += 16;
if( i_read <= 21 )
{
- msg_Warn( p_sd, "too short SAP packet\n" );
+ msg_Warn( p_sd, "too short SAP packet" );
return VLC_EGENERIC;
}
}
free( p_decompressed_buffer );
}
#else
- msg_Warn( p_sd, "Ignoring compressed sap packet" );
+ msg_Warn( p_sd, "ignoring compressed sap packet" );
return VLC_EGENERIC;
#endif
}
}
if( ( psz_sdp != psz_foo ) && strcasecmp( psz_foo, "application/sdp" ) )
{
- msg_Dbg( p_sd, "unhandled content type: %s", psz_foo );
+ msg_Dbg( p_sd, "unhandled content type: %s", psz_foo );
}
if( ( psz_sdp - (char *)p_buffer ) >= i_read )
{
/* Add item */
if( p_sdp->i_media > 1 )
{
- msg_Dbg( p_sd, "passing to LIVE.COM" );
+ msg_Dbg( p_sd, "passing to liveMedia" );
}
CreateAnnounce( p_sd, i_hash, p_sdp );
if( psz_sdp[0] != 'v' || psz_sdp[1] != '=' )
{
- msg_Warn( p_obj, "Bad packet" );
+ msg_Warn( p_obj, "bad packet" );
return NULL;
}
static void CacheLoad( services_discovery_t *p_sd )
{
- msg_Warn( p_sd, "Cache not implemented") ;
+ msg_Warn( p_sd, "cache not implemented") ;
}
static void CacheSave( services_discovery_t *p_sd )
{
- msg_Warn( p_sd, "Cache not implemented") ;
+ msg_Warn( p_sd, "cache not implemented") ;
}