[vlc-devel] commit: Check the return value of services_discovery_GetServicesNames. ( Rémi Duraffort )

git version control git at videolan.org
Mon Mar 3 11:50:15 CET 2008


vlc | branch: master | Rémi Duraffort <ivoire at via.ecp.fr> | Mon Mar  3 11:46:55 2008 +0100| [9c1a53ac71e4edb312b5fe7123163aa223a55c20]

Check the return value of services_discovery_GetServicesNames.
If mac users can test ... (evenif it's really simple)

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

 modules/gui/macosx/playlist.m |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/modules/gui/macosx/playlist.m b/modules/gui/macosx/playlist.m
index 0250ea4..ae095c9 100644
--- a/modules/gui/macosx/playlist.m
+++ b/modules/gui/macosx/playlist.m
@@ -382,6 +382,11 @@
 
     char ** ppsz_name;
     char ** ppsz_services = services_discovery_GetServicesNames( p_playlist, &ppsz_name );
+    if( !ppsz_services )
+    {
+        vlc_object_release( p_playlist );
+        return;
+    }
     
     for( i = 0; ppsz_services[i]; i++ )
     {




More information about the vlc-devel mailing list