Commit f62dfb1b authored by Steve Lhomme's avatar Steve Lhomme Committed by Jean-Baptiste Kempf
Browse files

upnp: MediaServerList::m_lock protects the access to m_list

parseNewServer() is called from various threads of UPNP so we need to protect
our server list
Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <>
parent 1e678ab3
......@@ -398,6 +398,8 @@ void MediaServerList::parseNewServer( IXML_Document *doc, const std::string &loc
if ( !p_device_list )
vlc_mutex_locker lock( &m_lock );
for ( unsigned int i = 0; i < ixmlNodeList_length( p_device_list ); i++ )
IXML_Element* p_device_element = ( IXML_Element* ) ixmlNodeList_item( p_device_list, i );
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