]> git.sesse.net Git - vlc/blobdiff - modules/access/jack.c
Do not assert memory allocations
[vlc] / modules / access / jack.c
index fbbac2d08da962957a0f861b0b412f691021476f..217b6e4aa0b81b8734fbf0aeabfbc6309dc20f06 100644 (file)
@@ -541,9 +541,8 @@ static void Port_finder( demux_t *p_demux )
                 i_out_ports++;
             }
             /* alloc an array to store all the matched ports */
-            p_sys->pp_jack_port_table = realloc( p_sys->pp_jack_port_table,
+            p_sys->pp_jack_port_table = xrealloc( p_sys->pp_jack_port_table,
                 (i_out_ports * sizeof( char * ) + i_total_out_ports * sizeof( char * ) ) );
-            assert( p_sys->pp_jack_port_table );
 
             for(int i=0; i<i_out_ports;i++)
             {