Commit c6a87144 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen
Browse files

actions_manager: Improve diagnostic message

parent 185a90ef
...@@ -328,15 +328,16 @@ void ActionsManager::ScanRendererAction(bool checked) ...@@ -328,15 +328,16 @@ void ActionsManager::ScanRendererAction(bool checked)
{ {
msg_Dbg( p_intf, "starting renderer discovery service %s", *ppsz_longname ); msg_Dbg( p_intf, "starting renderer discovery service %s", *ppsz_longname );
vlc_renderer_discovery_t* p_rd = vlc_rd_new( VLC_OBJECT(p_intf), *ppsz_name, &owner ); vlc_renderer_discovery_t* p_rd = vlc_rd_new( VLC_OBJECT(p_intf), *ppsz_name, &owner );
if( !p_rd ) if( p_rd != NULL )
msg_Err( p_intf, "Could not start renderer discovery services" );
else
{ {
if ( vlc_rd_start( p_rd ) == VLC_SUCCESS ) if ( vlc_rd_start( p_rd ) == VLC_SUCCESS )
m_rds.push_back( p_rd ); m_rds.push_back( p_rd );
else else
{
msg_Err( p_intf, "Could not start renderer discovery service %s", *ppsz_name );
vlc_rd_release( p_rd ); vlc_rd_release( p_rd );
} }
}
free( *ppsz_name ); free( *ppsz_name );
free( *ppsz_longname ); free( *ppsz_longname );
} }
......
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