Commit c34851dc authored by Christophe Mutricy's avatar Christophe Mutricy

Avoid segfault

Fix #2159
parent f067ff20
......@@ -187,6 +187,9 @@ int MMSHOpen( access_t *p_access )
input_thread_t * p_input = vlc_object_find( p_access, VLC_OBJECT_INPUT, FIND_PARENT );
input_item_t * p_new_loc;
if( !p_input )
return VLC_EGENERIC;
/** \bug we do not autodelete here */
p_new_loc = input_item_New( p_access, psz_location, psz_location );
input_item_AddSubItem( input_GetItem( p_input ), p_new_loc );
......
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