]> git.sesse.net Git - vlc/commitdiff
asx.c: fixed a small bug in skip ad feature
authorDamien Fouilleul <damienf@videolan.org>
Wed, 13 Jun 2007 12:47:29 +0000 (12:47 +0000)
committerDamien Fouilleul <damienf@videolan.org>
Wed, 13 Jun 2007 12:47:29 +0000 (12:47 +0000)
modules/demux/playlist/asx.c

index 62b15707676202f5646d35e3f2fc1182e53ee66f..a0060d2e503f2a756ceb78e79f0f9d3d2140e1a1 100644 (file)
@@ -567,8 +567,7 @@ static int Demux( demux_t *p_demux )
                 psz_parse = strcasestr( psz_parse, ">" );
 
                 /* If clientskip was enabled ... this is an ad */
-                if( psz_clientskip < psz_parse ) b_skip_entry = VLC_TRUE;
-                else b_skip_entry = VLC_FALSE;
+                b_skip_entry = (NULL != psz_clientskip) && (psz_clientskip < psz_parse);
 
                 // init entry details
                 FREENULL(psz_href);