Commit b192dc3c authored by Rafaël Carré's avatar Rafaël Carré

opensles: remove useless checks

those objects are guaranteed to exist
parent a9112101
......@@ -113,18 +113,14 @@ static void Clear( aout_sys_t *p_sys )
{
// Destroy buffer queue audio player object
// and invalidate all associated interfaces
if( p_sys->playerObject != NULL )
(*p_sys->playerObject)->Destroy( p_sys->playerObject );
// destroy output mix object, and invalidate all associated interfaces
if( p_sys->outputMixObject != NULL )
(*p_sys->outputMixObject)->Destroy( p_sys->outputMixObject );
// destroy engine object, and invalidate all associated interfaces
if( p_sys->engineObject != NULL )
(*p_sys->engineObject)->Destroy( p_sys->engineObject );
if( p_sys->p_so_handle != NULL )
dlclose( p_sys->p_so_handle );
free( p_sys );
......@@ -276,7 +272,6 @@ static void Close( vlc_object_t *p_this )
(*p_sys->playerPlay)->SetPlayState( p_sys->playerPlay, SL_PLAYSTATE_STOPPED );
//Flush remaining buffers if any.
if( p_sys->playerBufferQueue != NULL )
(*p_sys->playerBufferQueue)->Clear( p_sys->playerBufferQueue );
Clear( p_sys );
}
......
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