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 ) ...@@ -431,18 +431,15 @@ static picture_t* Filter( filter_t* p_filter, picture_t* p_pic )
} }
ReleaseImages( p_filter ); ReleaseImages( p_filter );
picture_Release( p_pic );
#ifndef NDEBUG #ifndef NDEBUG
msg_Dbg( p_filter, "Filter() done" ); msg_Dbg( p_filter, "Filter() done" );
#endif #endif
if( p_filter->p_sys->i_wrapper_output == VINPUT ) { if( p_filter->p_sys->i_wrapper_output != NONE ) {
picture_Release( p_pic );
return p_outpic;
} else if( p_filter->p_sys->i_wrapper_output == PROCESSED ) {
return p_outpic; return p_outpic;
} else { // NONE } else { // NONE
picture_Release( p_pic );
picture_Release( p_outpic ); picture_Release( p_outpic );
return NULL; 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