[vlc-devel] [PATCH 3/3] test: add test_media_subitems

Rémi Denis-Courmont remi at remlab.net
Wed Nov 4 20:45:27 CET 2015


Le 2015-11-04 21:35, Thomas Guillem a écrit :
> +static void subitem_tree_added(const libvlc_event_t *event, void 
> *user_data)
> +{
> +    (void)event;
> +
> +    struct test_media_subitems_sys *sys = user_data;
> +
> +    vlc_mutex_lock (&sys->lock);
> +    sys->subitems_tree_added = true;
> +    vlc_cond_signal (&sys->wait);
> +    vlc_mutex_unlock (&sys->lock);
> +}

I suspect a semaphore would be simpler. Looks OK though.
-- 
Rémi Denis-Courmont
http://www.remlab.net/


More information about the vlc-devel mailing list