Commit 9f558bfd authored by Edward Wang's avatar Edward Wang Committed by Jean-Baptiste Kempf

opencv_wrapper: Simplify logic slightly

Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent af2ef762
......@@ -431,18 +431,15 @@ static picture_t* Filter( filter_t* p_filter, picture_t* p_pic )
}
ReleaseImages( p_filter );
picture_Release( p_pic );
#ifndef NDEBUG
msg_Dbg( p_filter, "Filter() done" );
#endif
if( p_filter->p_sys->i_wrapper_output == VINPUT ) {
picture_Release( p_pic );
return p_outpic;
} else if( p_filter->p_sys->i_wrapper_output == PROCESSED ) {
if( p_filter->p_sys->i_wrapper_output != NONE ) {
return p_outpic;
} else { // NONE
picture_Release( p_pic );
picture_Release( p_outpic );
return NULL;
}
......
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