[vlc-devel] [PATCH 6/6] Update the MonitorLibVLCDeath hack to work on libvlc_Quit
Rémi Denis-Courmont
remi at remlab.net
Sat Jul 24 22:58:39 CEST 2010
Le samedi 24 juillet 2010 23:31:14 Juho Vähä-Herttua, vous avez écrit :
> ---
> src/interface/interface.c | 8 ++++++--
> 1 files changed, 6 insertions(+), 2 deletions(-)
>
> diff --git a/src/interface/interface.c b/src/interface/interface.c
> index 5c674d2..294f509 100644
> --- a/src/interface/interface.c
> +++ b/src/interface/interface.c
> @@ -201,7 +201,8 @@ void intf_DestroyAll( libvlc_int_t *p_libvlc )
>
> if( p_intf->pf_run )
> vlc_thread_join( p_intf );
> - module_unneed( p_intf, p_intf->p_module );
> + if( p_intf->p_module )
> + module_unneed( p_intf, p_intf->p_module );
This does not really make sense. If there is no module, then the interface
creation failed, so we cannot reach that code.
--
Rémi Denis-Courmont
http://www.remlab.net/
http://fi.linkedin.com/in/remidenis
More information about the vlc-devel
mailing list