mirror of https://code.videolan.org/videolan/vlc
libvlccore: vlc_thread_cancel() tangled object API
This commit is contained in:
parent
779d3cdf33
commit
de35969088
|
@ -52,6 +52,10 @@ void vlc_refcheck (vlc_object_t *obj);
|
|||
# define vlc_refcheck( obj ) (void)0
|
||||
#endif
|
||||
|
||||
/* Hopefully, no need to export this. There is a new thread API instead. */
|
||||
void vlc_thread_cancel (vlc_object_t *);
|
||||
|
||||
|
||||
/*
|
||||
* CPU capabilities
|
||||
*/
|
||||
|
|
|
@ -829,3 +829,10 @@ error:
|
|||
p_priv->b_thread = false;
|
||||
}
|
||||
|
||||
void vlc_thread_cancel (vlc_object_t *obj)
|
||||
{
|
||||
vlc_object_internals_t *priv = vlc_internals (obj);
|
||||
|
||||
if (priv->b_thread)
|
||||
vlc_cancel (priv->thread_id);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue