Commit d31d9140 authored by Filip Roséen's avatar Filip Roséen Committed by Thomas Guillem

input/item: simplify call to vlc_event_send

There's no need for a temporary local variable and the do-while
wrapping to limit its scope, instead these changes uses a
Signed-off-by: Thomas Guillem's avatarThomas Guillem <>
parent d6b80fe3
......@@ -1009,10 +1009,8 @@ void input_item_SetEpg( input_item_t *p_item, const vlc_epg_t *p_update, bool b_
free( psz_epg );
do {
vlc_event_t event = { .type = vlc_InputItemInfoChanged, };
vlc_event_send( &p_item->event_manager, &event );
} while(0);
vlc_event_send( &p_item->event_manager,
&(vlc_event_t){ .type = vlc_InputItemInfoChanged, } );
void input_item_ChangeEPGSource( input_item_t *p_item, int i_source_id )
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