From: Derk-Jan Hartman Date: Sun, 27 Jun 2004 23:40:29 +0000 (+0000) Subject: * check for p_vout before accessing it. (quit before playing would cause a crash... X-Git-Tag: 0.8.0~1031 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=4c40a909dc59ff9215891e8388166d0f89618518;p=vlc * check for p_vout before accessing it. (quit before playing would cause a crash as of late) --- diff --git a/modules/control/hotkeys.c b/modules/control/hotkeys.c index fa19e6867b..8f46c03815 100755 --- a/modules/control/hotkeys.c +++ b/modules/control/hotkeys.c @@ -639,9 +639,12 @@ static void ClearChannels( intf_thread_t *p_intf, vout_thread_t *p_vout ) { int i; - vout_ClearOSDChannel( p_vout, DEFAULT_CHAN ); - for( i = 0; i < CHANNELS_NUMBER; i++ ) + if( p_vout ) { - vout_ClearOSDChannel( p_vout, p_intf->p_sys->p_channels[ i ] ); + vout_ClearOSDChannel( p_vout, DEFAULT_CHAN ); + for( i = 0; i < CHANNELS_NUMBER; i++ ) + { + vout_ClearOSDChannel( p_vout, p_intf->p_sys->p_channels[ i ] ); + } } }