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

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


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

input: deduplicate input item meta event

input_SendEventMeta() is called after changing the meta of the input
thread's input item. The input item meta event is already sent (with
the correct meta type parameter) by the input item code.

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

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

diff --git a/src/input/event.c b/src/input/event.c
index 9f6fb0cae0..469ef479da 100644
--- a/src/input/event.c
+++ b/src/input/event.c
@@ -195,13 +195,6 @@ void input_SendEventCache( input_thread_t *p_input, double f_level )
 void input_SendEventMeta( input_thread_t *p_input )
 {
     Trigger( p_input, INPUT_EVENT_ITEM_META );
-
-    /* FIXME remove this ugliness ? */
-    vlc_event_t event;
-
-    event.type = vlc_InputItemMetaChanged;
-    event.u.input_item_meta_changed.meta_type = vlc_meta_ArtworkURL;
-    vlc_event_send( &input_priv(p_input)->p_item->event_manager, &event );
 }
 
 void input_SendEventMetaInfo( input_thread_t *p_input )



More information about the vlc-commits mailing list