* libvlc interface to the Transport Layer Security (TLS) plugins.
*/
-#include <vlc/vlc.h>
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
+#include <vlc_common.h>
#include "libvlc.h"
#include <vlc_tls.h>
if (srv->p_module == NULL)
{
msg_Err (srv, "TLS server plugin not available");
- vlc_object_destroy (srv);
+ vlc_object_release (srv);
return NULL;
}
module_Unneed (srv, srv->p_module);
vlc_object_detach (srv);
- vlc_object_destroy (srv);
+ vlc_object_release (srv);
}
if (cl->p_module == NULL)
{
msg_Err (cl, "TLS client plugin not available");
- vlc_object_destroy (cl);
+ vlc_object_release (cl);
return NULL;
}
msg_Err (cl, "TLS client session handshake error");
module_Unneed (cl, cl->p_module);
- vlc_object_destroy (cl);
+ vlc_object_release (cl);
return NULL;
}
module_Unneed (cl, cl->p_module);
vlc_object_detach (cl);
- vlc_object_destroy (cl);
+ vlc_object_release (cl);
}