]> git.sesse.net Git - vlc/commitdiff
dvb: count channels names, not number of services we have
authorIlkka Ollakka <ileoo@videolan.org>
Thu, 17 Mar 2011 11:54:44 +0000 (13:54 +0200)
committerIlkka Ollakka <ileoo@videolan.org>
Thu, 17 Mar 2011 12:06:14 +0000 (14:06 +0200)
modules/access/dvb/scan.c

index a6af3c6a9fb930d96620a71dd493224fca5164be..0b1c082431f076dd262a76a21ebc28070b336b2d 100644 (file)
@@ -607,7 +607,7 @@ int scan_Next( scan_t *p_scan, scan_configuration_t *p_cfg )
 
     for( int i = 0; i < p_scan->i_service; i++ )
     {
-        if( p_scan->pp_service[i]->type != SERVICE_UNKNOWN )
+        if( p_scan->pp_service[i]->psz_name )
             i_service++;
     }