[vlc-commits] commit: udev: minor simplification ( Rémi Denis-Courmont )

git at videolan.org git at videolan.org
Mon Aug 9 18:22:36 CEST 2010


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Aug  9 19:16:39 2010 +0300| [892a2b1aeeda130ba08ab3dab8524112f9d8ea4b] | committer: Rémi Denis-Courmont 

udev: minor simplification

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

 modules/services_discovery/udev.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/services_discovery/udev.c b/modules/services_discovery/udev.c
index 650059b..95b6b1a 100644
--- a/modules/services_discovery/udev.c
+++ b/modules/services_discovery/udev.c
@@ -538,7 +538,7 @@ static char *disc_get_mrl (struct udev_device *dev)
     if (val && !strcmp (val, "blank"))
         return NULL; /* ignore empty drives and virgin recordable discs */
 
-    const char *scheme = "invalid";
+    const char *scheme = NULL;
     val = udev_device_get_property_value (dev,
                                           "ID_CDROM_MEDIA_TRACK_COUNT_AUDIO");
     if (val && atoi (val))
@@ -558,7 +558,7 @@ static char *disc_get_mrl (struct udev_device *dev)
 
     /* We didn't get any property that could tell we have optical disc
        that we can play */
-    if( !strcmp( scheme, "invalid" ) )
+    if (scheme == NULL)
         return NULL;
 
     val = udev_device_get_devnode (dev);



More information about the vlc-commits mailing list