]> git.sesse.net Git - vlc/commitdiff
Hum, this isn't needed anymore.
authorAntoine Cellerier <dionoea@videolan.org>
Sat, 1 Apr 2006 00:25:58 +0000 (00:25 +0000)
committerAntoine Cellerier <dionoea@videolan.org>
Sat, 1 Apr 2006 00:25:58 +0000 (00:25 +0000)
src/misc/image.c

index cc53d993087b19d1de95338c278d0da7d2758f7c..c321a6301b86bb5d9a18c8b453e5b0062a8ed97d 100644 (file)
@@ -221,13 +221,6 @@ static picture_t *ImageReadUrl( image_handler_t *p_image, const char *psz_url,
 
     p_block = block_New( p_image->p_parent, i_size );
 
-    if( !p_block )
-    {
-        msg_Dbg( p_image->p_parent, "error while allocating memory to read %s",
-                 psz_url );
-        return NULL;
-    }
-
     stream_Read( p_stream, p_block->p_buffer, i_size );
     stream_Delete( p_stream );