Commit 36928f4c authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Add vlc_pa_rttime_free()

This makes up for the lack of pa_context_rttime_free() in libpulse.
parent 2eb100bc
......@@ -35,6 +35,8 @@ VLC_API void vlc_pa_disconnect (vlc_object_t *obj, pa_context *ctx);
VLC_API void vlc_pa_error (vlc_object_t *, const char *msg, pa_context *);
#define vlc_pa_error(o, m, c) vlc_pa_error(VLC_OBJECT(o), m, c)
VLC_API void vlc_pa_rttime_free (pa_time_event *);
# ifdef __cplusplus
}
# endif
......
......@@ -255,3 +255,14 @@ void vlc_pa_disconnect (vlc_object_t *obj, pa_context *ctx)
vlc_pa_mainloop_deinit ();
(void) obj;
}
/**
* Frees a timer event.
* \note Timer events can be created with pa_context_rttime_new().
* \warning This function must be called from the mainloop,
* or with the mainloop lock held.
*/
void vlc_pa_rttime_free(pa_time_event *e)
{
(pa_threaded_mainloop_get_api (vlc_pa_mainloop))->time_free (e);
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment