check that p_pic->pf_release != NULL before calling it
authorAntoine Cellerier <dionoea@videolan.org>
Sat, 15 Jul 2006 14:53:58 +0000 (14:53 +0000)
committerAntoine Cellerier <dionoea@videolan.org>
Sat, 15 Jul 2006 14:53:58 +0000 (14:53 +0000)
modules/video_filter/adjust.c
modules/video_filter/gradient.c
modules/video_filter/invert.c
modules/video_filter/psychedelic.c
modules/video_filter/ripple.c
modules/video_filter/wave.c

index 8225632..71b6e7b 100644 (file)
@@ -426,7 +426,8 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic )
     p_outpic->b_progressive = p_pic->b_progressive;
     p_outpic->b_top_field_first = p_pic->b_top_field_first;
 
-    p_pic->pf_release( p_pic );
+    if( p_pic->pf_release )
+        p_pic->pf_release( p_pic );
 
     return p_outpic;
 }
index c2c9b25..83dcd7c 100644 (file)
@@ -240,7 +240,8 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic )
     p_outpic->b_progressive = p_pic->b_progressive;
     p_outpic->b_top_field_first = p_pic->b_top_field_first;
 
-    p_pic->pf_release( p_pic );
+    if( p_pic->pf_release )
+        p_pic->pf_release( p_pic );
 
     return p_outpic;
 }
index 5f9d141..fdd4eda 100644 (file)
@@ -170,7 +170,8 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic )
     p_outpic->b_progressive = p_pic->b_progressive;
     p_outpic->b_top_field_first = p_pic->b_top_field_first;
 
-    p_pic->pf_release( p_pic );
+    if( p_pic->pf_release )
+        p_pic->pf_release( p_pic );
 
     return p_outpic;
 }
index c66b747..56ca932 100644 (file)
@@ -246,7 +246,8 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic )
     p_outpic->b_progressive = p_pic->b_progressive;
     p_outpic->b_top_field_first = p_pic->b_top_field_first;
 
-    p_pic->pf_release( p_pic );
+    if( p_pic->pf_release )
+        p_pic->pf_release( p_pic );
 
     return p_outpic;
 }
index 5c1c742..0eb361b 100644 (file)
@@ -205,7 +205,8 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic )
     p_outpic->b_progressive = p_pic->b_progressive;
     p_outpic->b_top_field_first = p_pic->b_top_field_first;
 
-    p_pic->pf_release( p_pic );
+    if( p_pic->pf_release )
+        p_pic->pf_release( p_pic );
 
     return p_outpic;
 }
index c74293c..bc7dd3f 100644 (file)
@@ -192,7 +192,8 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic )
     p_outpic->b_progressive = p_pic->b_progressive;
     p_outpic->b_top_field_first = p_pic->b_top_field_first;
 
-    p_pic->pf_release( p_pic );
+    if( p_pic->pf_release )
+        p_pic->pf_release( p_pic );
 
     return p_outpic;
 }