+ if( p_sys->p_input )
+ {
+ p_sys->p_input->StopStreams();
+ p_sys->p_input->Release();
+ }
+
+ if( p_sys->p_card )
+ p_sys->p_card->Release();
+
+ if( p_sys->p_delegate )
+ p_sys->p_delegate->Release();
+
+ if( p_sys->p_video_frame )
+ block_Release( p_sys->p_video_frame );
+
+ if( p_sys->p_audio_frame )
+ block_Release( p_sys->p_audio_frame );
+