[vlc-devel] commit: Add assert()ions to help fighting a bug ( Rafaël Carré )
git version control
git at videolan.org
Sat Mar 15 22:46:59 CET 2008
vlc | branch: master | Rafaël Carré <funman at videolan.org> | Sat Mar 15 22:47:10 2008 +0100| [ba7e4ce0f12026c1736097f43cfbd96096b98f23]
Add assert()ions to help fighting a bug
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ba7e4ce0f12026c1736097f43cfbd96096b98f23
---
src/video_output/vout_pictures.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/video_output/vout_pictures.c b/src/video_output/vout_pictures.c
index c6b8431..3099b86 100644
--- a/src/video_output/vout_pictures.c
+++ b/src/video_output/vout_pictures.c
@@ -936,7 +936,9 @@ void __vout_CopyPicture( vlc_object_t *p_this,
{
/* We need to proceed line by line */
uint8_t *p_in = p_src->p[i].p_pixels;
+ assert( p_in );
uint8_t *p_out = p_dest->p[i].p_pixels;
+ assert( p_out );
int i_line;
for( i_line = p_src->p[i].i_visible_lines; i_line--; )
More information about the vlc-devel
mailing list