[vlc-devel] commit: Don't unlock the playlist to lock it the next instruction. ( Rémi Duraffort )

git version control git at videolan.org
Thu Jul 17 19:01:35 CEST 2008


vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Thu Jul 17 19:03:43 2008 +0200| [16c8c42c018364be49a7a913db7fd4adce1180d9]

Don't unlock the playlist to lock it the next instruction.

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

 src/playlist/services_discovery.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/playlist/services_discovery.c b/src/playlist/services_discovery.c
index f3691da..4eecba3 100644
--- a/src/playlist/services_discovery.c
+++ b/src/playlist/services_discovery.c
@@ -266,11 +266,12 @@ static void playlist_sd_item_removed( const vlc_event_t * p_event, void * user_d
         vlc_object_unlock( p_parent->p_playlist );
         return;
     }
-    vlc_object_unlock( p_parent->p_playlist );
 
     /* Delete the non-node item normally */
     playlist_DeleteInputInParent( p_parent->p_playlist, p_input->i_id,
-                                  p_parent, false );
+                                  p_parent, true );
+
+    vlc_object_unlock( p_parent->p_playlist );
 }
 
 int playlist_ServicesDiscoveryAdd( playlist_t *p_playlist,  const char *psz_modules )




More information about the vlc-devel mailing list