vlc | branch: master | Marvin Scholz <[email protected]> | Tue Jul 31 14:31:48 
2018 +0200| [856bb8dc7085b77985f87ec5b8c45a1f8399071f] | committer: Marvin 
Scholz

upnp: Fix wrong comparison of psz_satip_channellist

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

 modules/services_discovery/upnp.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/services_discovery/upnp.cpp 
b/modules/services_discovery/upnp.cpp
index b62b7aa535..a7e9e727fc 100644
--- a/modules/services_discovery/upnp.cpp
+++ b/modules/services_discovery/upnp.cpp
@@ -596,7 +596,7 @@ MediaServerList::parseSatipServer( IXML_Element* 
p_device_element, const char *p
     /* Part 2: device playlist
      * In Automatic mode, or if requested by the user, check for a SAT>IP m3u 
list on the device */
     if (strncmp(psz_satip_channellist, "ServerList", 10) == 0 ||
-        strncmp(psz_satip_channellist, "Auto", strlen ("Auto") == 0 )) {
+        strncmp(psz_satip_channellist, "Auto", strlen ("Auto")) == 0 ) {
         const char* psz_m3u_url = xml_getChildElementValue( p_device_element, 
"satip:X_SATIPM3U" );
         if ( psz_m3u_url ) {
             if ( strncmp( "http", psz_m3u_url, 4) )
@@ -641,7 +641,7 @@ MediaServerList::parseSatipServer( IXML_Element* 
p_device_element, const char *p
      * MasterList is a list of usual Satellites */
 
     /* In Auto mode, default to MasterList list from satip.info */
-    if( strncmp(psz_satip_channellist, "Auto", strlen ("Auto") == 0 ) ) {
+    if( strncmp(psz_satip_channellist, "Auto", strlen ("Auto")) == 0 ) {
         psz_satip_channellist = strdup( "MasterList" );
     }
 

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to