[vlc-commits] actions_manager: Improve diagnostic message

Hugo Beauzée-Luyssen git at videolan.org
Tue May 16 18:45:09 CEST 2017


vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Tue May 16 18:08:25 2017 +0200| [c6a871445554a667657bcc63a3a2bd22739bb516] | committer: Hugo Beauzée-Luyssen

actions_manager: Improve diagnostic message

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c6a871445554a667657bcc63a3a2bd22739bb516
---

 modules/gui/qt/actions_manager.cpp | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/modules/gui/qt/actions_manager.cpp b/modules/gui/qt/actions_manager.cpp
index 1d023b0c8a..8270b69e9b 100644
--- a/modules/gui/qt/actions_manager.cpp
+++ b/modules/gui/qt/actions_manager.cpp
@@ -328,14 +328,15 @@ void ActionsManager::ScanRendererAction(bool checked)
         {
             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 );
-            if( !p_rd )
-                msg_Err( p_intf, "Could not start renderer discovery services" );
-            else
+            if( p_rd != NULL )
             {
                 if ( vlc_rd_start( p_rd ) == VLC_SUCCESS )
                     m_rds.push_back( p_rd );
                 else
+                {
+                    msg_Err( p_intf, "Could not start renderer discovery service %s", *ppsz_name );
                     vlc_rd_release( p_rd );
+                }
             }
             free( *ppsz_name );
             free( *ppsz_longname );



More information about the vlc-commits mailing list