demux/ttml: remove unnecessary check
authorFilip Roséen <filip@atch.se>
Mon, 19 Sep 2016 22:55:53 +0000 (00:55 +0200)
committerHugo Beauzée-Luyssen <hugo@beauzee.fr>
Mon, 19 Sep 2016 22:58:07 +0000 (00:58 +0200)
Signed-off-by: Hugo Beauzée-Luyssen <hugo@beauzee.fr>
modules/demux/ttml.c

index e21eb16..069177d 100644 (file)
@@ -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;
 }