vlc | branch: master | Filip Roséen <fi...@atch.se> | Tue Sep 20 00:55:53 2016 +0200| [73bf7d83c40a321cdcc302920ef952a8755076e0] | committer: Hugo Beauzée-Luyssen
demux/ttml: remove unnecessary check Signed-off-by: Hugo Beauzée-Luyssen <h...@beauzee.fr> > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=73bf7d83c40a321cdcc302920ef952a8755076e0 --- modules/demux/ttml.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/modules/demux/ttml.c b/modules/demux/ttml.c index e21eb16..069177d 100644 --- a/modules/demux/ttml.c +++ b/modules/demux/ttml.c @@ -357,11 +357,8 @@ static bool isInArray( vlc_array_t* p_array, mtime_t* p_elem ) static int addToArrayIfNotInside( vlc_array_t* p_array, mtime_t* p_elem ) { if( !isInArray( p_array, p_elem ) ) - { vlc_array_append( p_array, p_elem ); - if( unlikely( p_array->pp_elems[p_array->i_count - 1] == NULL ) ) - return VLC_ENOMEM; - } + return VLC_SUCCESS; } _______________________________________________ vlc-commits mailing list vlc-commits@videolan.org https://mailman.videolan.org/listinfo/vlc-commits