]> git.sesse.net Git - vlc/blobdiff - src/stream_output/sap.c
Attach the sap object to libvlc.
[vlc] / src / stream_output / sap.c
index 40e03e8bd603dac78c6bfc140c4d4c3a6f6f303d..04a3b9e35ac77edd89e26ec31785947079491e7d 100644 (file)
@@ -108,6 +108,7 @@ sap_handler_t *SAP_Create (vlc_object_t *p_announce)
     if (p_sap == NULL)
         return NULL;
 
+    vlc_object_attach( p_sap, p_announce );
     vlc_mutex_init (&p_sap->lock);
     p_sap->first = NULL;
     return p_sap;