[vlc-devel] [PATCH 2/2] playlist: service discovery nodes must set flags (refs ##16923)
Francois Cartegnie
fcvlcdev at free.fr
Sun May 8 16:01:16 CEST 2016
RO and must stop playback on failure
---
src/playlist/services_discovery.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/src/playlist/services_discovery.c b/src/playlist/services_discovery.c
index bf7eb68..68be7c0 100644
--- a/src/playlist/services_discovery.c
+++ b/src/playlist/services_discovery.c
@@ -289,7 +289,8 @@ static void playlist_sd_item_added( const vlc_event_t * p_event, void * user_dat
{
p_cat = playlist_NodeCreate( p_playlist, psz_cat,
p_parent, PLAYLIST_END, 0, NULL );
- p_cat->i_flags &= ~PLAYLIST_SKIP_FLAG;
+ //p_cat->i_flags &= ~PLAYLIST_SKIP_FLAG;
+ p_cat->i_flags |= PLAYLIST_RO_FLAG | PLAYLIST_SKIP_FLAG;
}
p_parent = p_cat;
}
@@ -376,7 +377,9 @@ int playlist_ServicesDiscoveryAdd( playlist_t *p_playlist,
PL_LOCK;
p_node = playlist_NodeCreate( p_playlist, psz_longname,
- p_playlist->p_root, PLAYLIST_END, 0, NULL );
+ p_playlist->p_root, PLAYLIST_END,
+ PLAYLIST_RO_FLAG | PLAYLIST_SKIP_FLAG,
+ NULL );
PL_UNLOCK;
vlc_event_manager_t *em = services_discovery_EventManager( p_sd );
--
2.5.5
More information about the vlc-devel
mailing list