]> git.sesse.net Git - vlc/commitdiff
sap: Don't release when not needed.
authorPierre d'Herbemont <pdherbemont@videolan.org>
Tue, 22 Jul 2008 20:44:58 +0000 (22:44 +0200)
committerPierre d'Herbemont <pdherbemont@videolan.org>
Tue, 22 Jul 2008 20:44:58 +0000 (22:44 +0200)
modules/services_discovery/sap.c

index 8977fc2a697023d945516f6551c5ac0e7c736f1c..6dfadf508e556a23b52311c9ccdc3d51195327f5 100644 (file)
@@ -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;
 }