]> git.sesse.net Git - vlc/commitdiff
access: bd: add assertion
authorTristan Matthews <tmatth@videolan.org>
Sun, 2 Nov 2014 23:08:15 +0000 (18:08 -0500)
committerTristan Matthews <tmatth@videolan.org>
Sun, 2 Nov 2014 23:08:15 +0000 (18:08 -0500)
modules/access/bd/bd.c

index bf9ccd5f46bc098e00c6b841a25f49647a2bbc70..3b17f55c42c1eb702750aedcb2c1f357bffe5a0d 100644 (file)
@@ -610,6 +610,7 @@ static int SetPlayItem( demux_t *p_demux, int i_mpls, int i_play_item )
         if( p_sys->pp_clpi[i_clpi]->i_id == p_mpls_clpi->i_id )
             p_clpi = p_sys->pp_clpi[i_clpi];
     }
+    assert(p_clpi);
 
     const bool b_same_clpi = b_same_mpls && p_sys->p_clpi->i_id == p_clpi->i_id;
     stream_t *p_m2ts = NULL;