Commit 5b3a2948 authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

input: retain the input item.

parent ab121fdf
......@@ -177,6 +177,7 @@ static input_thread_t *Create( vlc_object_t *p_parent, input_item_t *p_item,
p_input->i_pts_delay = 0;
/* Init Input fields */
vlc_gc_incref( p_item ); /* Released in Destructor() */
p_input->p->input.p_item = p_item;
p_input->p->input.p_access = NULL;
p_input->p->input.p_stream = NULL;
......@@ -313,6 +314,8 @@ static void Destructor( input_thread_t * p_input )
sout_DeleteInstance( priv->p_sout );
}
vlc_gc_decref( p_input->p->input.p_item );
vlc_mutex_destroy( &p_input->p->counters.counters_lock );
vlc_mutex_destroy( &priv->lock_control );
......
......@@ -1234,7 +1234,9 @@ void vlc_list_release( vlc_list_t *p_list )
void __vlc_object_dump( vlc_object_t *p_this )
{
vlc_mutex_lock( &structure_lock );
PrintObject( p_this, "vlc_object_dump: " );
char psz_foo[2 * MAX_DUMPSTRUCTURE_DEPTH + 1];
psz_foo[0] = '|';
DumpStructure( p_this, 0, psz_foo );
vlc_mutex_unlock( &structure_lock );
}
......
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