[vlc-devel] commit: sap: Don't release when not needed. (Pierre d'Herbemont )
git version control
git at videolan.org
Tue Jul 22 22:42:32 CEST 2008
vlc | branch: master | Pierre d'Herbemont <pdherbemont at videolan.org> | Tue Jul 22 22:44:58 2008 +0200| [755664e5c0481e9856b2cf1fc46b6cc5cb7f27cc]
sap: Don't release when not needed.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=755664e5c0481e9856b2cf1fc46b6cc5cb7f27cc
---
modules/services_discovery/sap.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/modules/services_discovery/sap.c b/modules/services_discovery/sap.c
index 8977fc2..6dfadf5 100644
--- a/modules/services_discovery/sap.c
+++ b/modules/services_discovery/sap.c
@@ -671,6 +671,8 @@ static int Demux( demux_t *p_demux )
return VLC_EGENERIC;
}
+ /* This item hasn't been yield by input_GetItem
+ * don't release it */
p_parent_input = input_GetItem( p_input );
input_item_SetURI( p_parent_input, p_sdp->psz_uri );
@@ -681,7 +683,6 @@ static int Demux( demux_t *p_demux )
p_parent_input->i_type = ITEM_TYPE_NET;
vlc_mutex_unlock( &p_parent_input->lock );
- vlc_object_release( p_input );
return VLC_SUCCESS;
}
More information about the vlc-devel
mailing list