Commit b0e3f34f authored by Derk-Jan Hartman's avatar Derk-Jan Hartman

Fix a refcount issue of p_input in the core of the 0.8.6 branch

parent 95640d3b
......@@ -736,6 +736,12 @@ static void RunThread( vout_thread_t *p_vout)
display_date = 0;
current_date = mdate();
if( p_input && p_input->b_die )
{
vlc_object_release( p_input );
p_input = NULL;
}
#if 0
p_vout->c_loops++;
if( !(p_vout->c_loops % VOUT_STATS_NB_LOOPS) )
......@@ -901,7 +907,7 @@ static void RunThread( vout_thread_t *p_vout)
p_input = vlc_object_find( p_vout, VLC_OBJECT_INPUT,
FIND_PARENT );
p_subpic = spu_SortSubpictures( p_vout->p_spu, display_date,
p_input ? var_GetBool( p_input, "state" ) == PAUSE_S : VLC_FALSE );
p_input ? var_GetBool( p_input, "state" ) == PAUSE_S : VLC_FALSE );
}
/*
......
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