[vlc-devel] commit: dvbsub: remove dummy test (already check then dereference before). ( Rémi Duraffort )
git version control
git at videolan.org
Thu Feb 11 16:07:42 CET 2010
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 )
- {
- msg_Err( p_dec, "cannot allocate SPU region" );
- continue;
- }
p_spu_region->psz_text = strdup( p_object_def->psz_text );
p_spu_region->i_x = i_base_x + p_regiondef->i_x + p_object_def->i_x;
More information about the vlc-devel
mailing list