[vlc-commits] input: deduplicate input item info event

Rémi Denis-Courmont git at videolan.org
Wed May 17 19:34:51 CEST 2017


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed May 17 20:18:14 2017 +0300| [469c0f3bc9c7c38b48ccf6be44961e1bc7851f47] | committer: Rémi Denis-Courmont

input: deduplicate input item info event

input_SendEventMetaInfo() is called after changing the "infos" of the
input thread's input item. The input item meta event is already sent
by the input item code.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=469c0f3bc9c7c38b48ccf6be44961e1bc7851f47
---

 src/input/event.c | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/src/input/event.c b/src/input/event.c
index 469ef479da..a913c16ceb 100644
--- a/src/input/event.c
+++ b/src/input/event.c
@@ -200,12 +200,6 @@ void input_SendEventMeta( input_thread_t *p_input )
 void input_SendEventMetaInfo( input_thread_t *p_input )
 {
     Trigger( p_input, INPUT_EVENT_ITEM_INFO );
-
-    /* FIXME remove this ugliness */
-    vlc_event_t event;
-
-    event.type = vlc_InputItemInfoChanged;
-    vlc_event_send( &input_priv(p_input)->p_item->event_manager, &event );
 }
 
 void input_SendEventMetaName( input_thread_t *p_input, const char *psz_name )



More information about the vlc-commits mailing list