[vlc-commits] sd: remove started and ended events
Rémi Denis-Courmont
git at videolan.org
Mon Nov 14 19:41:08 CET 2016
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Nov 14 20:40:48 2016 +0200| [6146f258ab0f4c1e3d80113ac0ef2addcbf06f2a] | committer: Rémi Denis-Courmont
sd: remove started and ended events
They had no listeners.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6146f258ab0f4c1e3d80113ac0ef2addcbf06f2a
---
include/vlc_events.h | 12 +-----------
src/playlist/services_discovery.c | 12 ------------
2 files changed, 1 insertion(+), 23 deletions(-)
diff --git a/include/vlc_events.h b/include/vlc_events.h
index ade84cf..bf1ba8c 100644
--- a/include/vlc_events.h
+++ b/include/vlc_events.h
@@ -124,11 +124,9 @@ typedef enum vlc_event_type_t {
/* Service Discovery event */
vlc_ServicesDiscoveryItemAdded,
vlc_ServicesDiscoveryItemRemoved,
- vlc_ServicesDiscoveryStarted=vlc_ServicesDiscoveryItemRemoved+2,
- vlc_ServicesDiscoveryEnded,
/* Renderer Discovery events */
- vlc_RendererDiscoveryItemAdded,
+ vlc_RendererDiscoveryItemAdded=vlc_ServicesDiscoveryItemRemoved+4,
vlc_RendererDiscoveryItemRemoved,
/* Addons Manager events */
@@ -192,14 +190,6 @@ typedef struct vlc_event_t
{
input_item_t * p_item;
} services_discovery_item_removed;
- struct vlc_services_discovery_started
- {
- void * unused;
- } services_discovery_started;
- struct vlc_services_discovery_ended
- {
- void * unused;
- } services_discovery_ended;
/* Renderer discovery events */
struct vlc_renderer_discovery_item_added
diff --git a/src/playlist/services_discovery.c b/src/playlist/services_discovery.c
index 76b9349..5a17b79 100644
--- a/src/playlist/services_discovery.c
+++ b/src/playlist/services_discovery.c
@@ -126,8 +126,6 @@ services_discovery_t *vlc_sd_Create( vlc_object_t *p_super,
vlc_event_manager_init( em, p_sd );
vlc_event_manager_register_event_type(em, vlc_ServicesDiscoveryItemAdded);
vlc_event_manager_register_event_type(em, vlc_ServicesDiscoveryItemRemoved);
- vlc_event_manager_register_event_type(em, vlc_ServicesDiscoveryStarted);
- vlc_event_manager_register_event_type(em, vlc_ServicesDiscoveryEnded);
vlc_object_set_destructor( p_sd, services_discovery_Destructor );
return p_sd;
@@ -148,10 +146,6 @@ bool vlc_sd_Start ( services_discovery_t * p_sd )
return false;
}
- vlc_event_t event = {
- .type = vlc_ServicesDiscoveryStarted
- };
- vlc_event_send( &p_sd->event_manager, &event );
return true;
}
@@ -160,12 +154,6 @@ bool vlc_sd_Start ( services_discovery_t * p_sd )
***********************************************************************/
void vlc_sd_Stop ( services_discovery_t * p_sd )
{
- vlc_event_t event = {
- .type = vlc_ServicesDiscoveryEnded
- };
-
- vlc_event_send( &p_sd->event_manager, &event );
-
module_unneed( p_sd, p_sd->p_module );
p_sd->p_module = NULL;
}
More information about the vlc-commits
mailing list