lib: renderer_discoverer: Allow a renderer_discoverer to be stopped then released

This commit is contained in:
Hugo Beauzée-Luyssen 2018-03-21 15:34:57 +01:00
parent cb9e21e362
commit 9bcd1e0721

View File

@ -174,7 +174,10 @@ void
libvlc_renderer_discoverer_stop( libvlc_renderer_discoverer_t *p_lrd )
{
if( p_lrd->p_rd != NULL )
{
vlc_rd_release( p_lrd->p_rd );
p_lrd->p_rd = NULL;
}
for( int i = 0; i < p_lrd->i_items; ++i )
vlc_renderer_item_release( p_lrd->pp_items[i] );