[vlc-commits] playlist: service discovery nodes must set flags (refs #16923)

Francois Cartegnie git at videolan.org
Tue May 10 19:30:36 CEST 2016


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Sun May  8 15:51:33 2016 +0200| [a9b1f3f3916a896f30bc4f2bbedfacd0867f34f0] | committer: Francois Cartegnie

playlist: service discovery nodes must set flags (refs #16923)

RO and must stop playback on failure

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

 src/playlist/services_discovery.c |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/playlist/services_discovery.c b/src/playlist/services_discovery.c
index bf7eb68..4a5b451 100644
--- a/src/playlist/services_discovery.c
+++ b/src/playlist/services_discovery.c
@@ -289,7 +289,7 @@ 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_RO_FLAG | PLAYLIST_SKIP_FLAG;
         }
         p_parent = p_cat;
     }
@@ -376,7 +376,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 );



More information about the vlc-commits mailing list