vlc | branch: master | Thomas Guillem <[email protected]> | Fri Jan 18 10:59:02 2019 +0100| [4ae70002641b0b976e164ee3822d4a43c9814546] | committer: Thomas Guillem
upnp: set discovery less verbose > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=4ae70002641b0b976e164ee3822d4a43c9814546 --- modules/services_discovery/upnp.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/services_discovery/upnp.cpp b/modules/services_discovery/upnp.cpp index 4c08c26a0b..5edb978f71 100644 --- a/modules/services_discovery/upnp.cpp +++ b/modules/services_discovery/upnp.cpp @@ -1302,9 +1302,8 @@ bool MediaServer::fetchContents() return false; } -#ifndef NDEBUG - msg_Dbg( m_access, "Got DIDL document: %s", ixmlPrintDocument( p_result ) ); -#endif + if( var_InheritInteger(m_access, "verbose") >= 4 ) + msg_Dbg( m_access, "Got DIDL document: %s", ixmlPrintDocument( p_result ) ); IXML_NodeList* containerNodeList = ixmlDocument_getElementsByTagName( p_result, "container" ); @@ -1486,7 +1485,8 @@ void MediaRendererList::parseNewRenderer( IXML_Document* doc, const std::string& location) { assert(!location.empty()); - msg_Dbg( m_rd , "Got device desc doc:\n%s", ixmlPrintDocument( doc )); + if( var_InheritInteger(m_rd, "verbose") >= 4 ) + msg_Dbg( m_rd , "Got device desc doc:\n%s", ixmlPrintDocument( doc )); const char* psz_base_url = nullptr; IXML_NodeList* p_device_nodes = nullptr; _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
