Commit a54c800d authored by Rémi Duraffort's avatar Rémi Duraffort

Create and copy the meta array only if the copied item does have one.

parent fee1ca0c
......@@ -896,8 +896,12 @@ input_item_t *input_item_Copy( vlc_object_t *p_obj, input_item_t *p_input )
p_input->ppsz_options[i],
p_input->optflagv[i] );
}
p_new_input->p_meta = vlc_meta_New();
vlc_meta_Merge( p_new_input->p_meta, p_input->p_meta );
if( p_input->p_meta )
{
p_new_input->p_meta = vlc_meta_New();
vlc_meta_Merge( p_new_input->p_meta, p_input->p_meta );
}
}
vlc_mutex_unlock( &p_input->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