Commit 1afd117f authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

macOS notification: fix crash on first item

parent 066d30b9
......@@ -206,6 +206,7 @@ static int ItemChange( vlc_object_t *p_this, const char *psz_var,
input_item_t *p_item = input_GetItem( p_input );
if( p_sys->current_item != p_item )
{
if( p_sys->current_item != NULL )
input_item_Release( p_sys->current_item );
p_sys->current_item = input_item_Hold( p_item );
p_sys->i_item_changes = 0;
......
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