[vlc-devel] commit: SAP: yield and release the playlist ( Rémi Denis-Courmont )
git version control
git at videolan.org
Wed May 7 20:17:37 CEST 2008
vlc | branch: master | Rémi Denis-Courmont <rem at videolan.org> | Wed May 7 21:18:49 2008 +0300| [0d9ed88c6bb9d2827989847ccbca35cd31262ec6]
SAP: yield and release the playlist
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0d9ed88c6bb9d2827989847ccbca35cd31262ec6
---
modules/services_discovery/sap.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/modules/services_discovery/sap.c b/modules/services_discovery/sap.c
index e24d5ac..68b70a9 100644
--- a/modules/services_discovery/sap.c
+++ b/modules/services_discovery/sap.c
@@ -1524,7 +1524,11 @@ static int RemoveAnnounce( services_discovery_t *p_sd,
}
if( p_announce->i_input_id > -1 )
- playlist_DeleteFromInput( pl_Get(p_sd), p_announce->i_input_id, false );
+ {
+ playlist_DeleteFromInput( pl_Yield( p_sd ),
+ p_announce->i_input_id, false );
+ pl_Release( p_sd );
+ }
for( i = 0; i< p_sd->p_sys->i_announces; i++)
{
More information about the vlc-devel
mailing list