[vlc-devel] commit: dvbsub: remove dummy test (already check then dereference before). ( Rémi Duraffort )

Laurent Aimar fenrir at via.ecp.fr
Thu Feb 11 16:22:59 CET 2010


On Thu, Feb 11, 2010, git version control wrote:
> vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Thu Feb 11 16:00:49 2010 +0100| [889d554841a63aca2f343083a96f9b436554e85b] | committer: Rémi Duraffort 
> 
> dvbsub: remove dummy test (already check then dereference before).
> 
> > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=889d554841a63aca2f343083a96f9b436554e85b
> ---
> 
>  modules/codec/dvbsub.c |    5 -----
>  1 files changed, 0 insertions(+), 5 deletions(-)
> 
> diff --git a/modules/codec/dvbsub.c b/modules/codec/dvbsub.c
> index 43c51cc..b6968da 100644
> --- a/modules/codec/dvbsub.c
> +++ b/modules/codec/dvbsub.c
> @@ -1643,11 +1643,6 @@ static subpicture_t *render( decoder_t *p_dec )
>              fmt.i_height = fmt.i_visible_height = p_region->i_height;
>              fmt.i_x_offset = fmt.i_y_offset = 0;
>              p_spu_region = subpicture_region_New( &fmt );
> -            if( !p_region )
if( !p_spu_region )
is probably what was intended..
> -            {
> -                msg_Err( p_dec, "cannot allocate SPU region" );
> -                continue;
> -            }
-- 
fenrir




More information about the vlc-devel mailing list