[vlc-devel] commit: remove unneeded tests. ( Rémi Duraffort )

git version control git at videolan.org
Sun Apr 26 18:57:04 CEST 2009


vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Sun Apr 26 18:46:16 2009 +0200| [dfc82177a57b2b9bf1b0306005146569728f7095] | committer: Rémi Duraffort 

remove unneeded tests.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=dfc82177a57b2b9bf1b0306005146569728f7095
---

 modules/video_filter/sharpen.c |    9 ---------
 1 files changed, 0 insertions(+), 9 deletions(-)

diff --git a/modules/video_filter/sharpen.c b/modules/video_filter/sharpen.c
index ce7fdd9..5db8ba3 100644
--- a/modules/video_filter/sharpen.c
+++ b/modules/video_filter/sharpen.c
@@ -171,8 +171,6 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic )
     const int v2 = 3; /* 2^3 = 8 */
 
     if( !p_pic ) return NULL;
-    if( !p_filter ) return NULL;
-    if( !p_filter->p_sys ) return NULL;
 
     p_outpic = filter_NewPicture( p_filter );
     if( !p_outpic )
@@ -184,13 +182,6 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic )
     /* process the Y plane */
     p_src = p_pic->p[Y_PLANE].p_pixels;
     p_out = p_outpic->p[Y_PLANE].p_pixels;
-    if( !p_src || !p_out )
-    {
-        msg_Warn( p_filter, "can't get Y plane" );
-        picture_Release( p_pic );
-        return NULL;
-    }
-
     i_src_pitch = p_pic->p[Y_PLANE].i_visible_pitch;
 
     /* perform convolution only on Y plane. Avoid border line. */




More information about the vlc-devel mailing list