Commit 4c40a909 authored by Derk-Jan Hartman's avatar Derk-Jan Hartman

* check for p_vout before accessing it. (quit before playing would cause a crash as of late)

parent 209a5a3a
...@@ -639,9 +639,12 @@ static void ClearChannels( intf_thread_t *p_intf, vout_thread_t *p_vout ) ...@@ -639,9 +639,12 @@ static void ClearChannels( intf_thread_t *p_intf, vout_thread_t *p_vout )
{ {
int i; int i;
vout_ClearOSDChannel( p_vout, DEFAULT_CHAN ); if( p_vout )
for( i = 0; i < CHANNELS_NUMBER; i++ )
{ {
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 ] );
}
} }
} }
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