Commit 9bee423b authored by Antoine Cellerier's avatar Antoine Cellerier

check that p_pic->pf_release != NULL before calling it

parent 7588d6a1
...@@ -426,7 +426,8 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic ) ...@@ -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_progressive = p_pic->b_progressive;
p_outpic->b_top_field_first = p_pic->b_top_field_first; 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; return p_outpic;
} }
...@@ -240,7 +240,8 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic ) ...@@ -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_progressive = p_pic->b_progressive;
p_outpic->b_top_field_first = p_pic->b_top_field_first; 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; return p_outpic;
} }
......
...@@ -170,7 +170,8 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic ) ...@@ -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_progressive = p_pic->b_progressive;
p_outpic->b_top_field_first = p_pic->b_top_field_first; 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; return p_outpic;
} }
...@@ -246,7 +246,8 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic ) ...@@ -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_progressive = p_pic->b_progressive;
p_outpic->b_top_field_first = p_pic->b_top_field_first; 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; return p_outpic;
} }
...@@ -205,7 +205,8 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic ) ...@@ -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_progressive = p_pic->b_progressive;
p_outpic->b_top_field_first = p_pic->b_top_field_first; 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; return p_outpic;
} }
...@@ -192,7 +192,8 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic ) ...@@ -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_progressive = p_pic->b_progressive;
p_outpic->b_top_field_first = p_pic->b_top_field_first; 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; return p_outpic;
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment