[vlc-commits] input: item: notify empty removed items/ empty epg

Francois Cartegnie git at videolan.org
Tue Dec 20 21:42:47 CET 2016


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Tue Dec 20 20:41:51 2016 +0100| [ce75cad91b15d03dabec9fee6526c97d0b788afc] | committer: Francois Cartegnie

input: item: notify empty removed items/ empty epg

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

 src/input/item.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/input/item.c b/src/input/item.c
index cf06331..369a78d 100644
--- a/src/input/item.c
+++ b/src/input/item.c
@@ -1004,9 +1004,10 @@ void input_item_SetEpg( input_item_t *p_item, const vlc_epg_t *p_update )
     free( psz_epg );
 signal:
 #endif
-
-    vlc_event_t event = { .type = vlc_InputItemInfoChanged, };
-    vlc_event_send( &p_item->event_manager, &event );
+    do {
+        vlc_event_t event = { .type = vlc_InputItemInfoChanged, };
+        vlc_event_send( &p_item->event_manager, &event );
+    } while(0);
 }
 
 void input_item_SetEpgOffline( input_item_t *p_item )



More information about the vlc-commits mailing list