[vlc-devel] commit: Lock the playlist here. ( Rémi Duraffort )
git version control
git at videolan.org
Sun Jul 27 23:43:08 CEST 2008
vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Sun Jul 27 23:45:07 2008 +0200| [84387c930d3fb4eca3d4e319809fb511da9b18ef]
Lock the playlist here.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=84387c930d3fb4eca3d4e319809fb511da9b18ef
---
modules/services_discovery/upnp_intel.cpp | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/modules/services_discovery/upnp_intel.cpp b/modules/services_discovery/upnp_intel.cpp
index a65036a..df4807a 100644
--- a/modules/services_discovery/upnp_intel.cpp
+++ b/modules/services_discovery/upnp_intel.cpp
@@ -295,9 +295,11 @@ static int Open( vlc_object_t *p_this )
p_sys->p_playlist = pl_Yield( p_sd );
/* Create our playlist node */
+ vlc_object_lock( p_sys->p_playlist );
playlist_NodesPairCreate( pl_Get( p_sd ), _("Devices"),
&p_sys->p_node_cat, &p_sys->p_node_one,
true );
+ vlc_object_unlock( p_sys->p_playlist );
return VLC_SUCCESS;
}
More information about the vlc-devel
mailing list