Commit 3c33fb8b authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

objects: vlc_object_yield() returns the yield()-ed object for convenience.

parent cbeb3453
......@@ -84,7 +84,7 @@ __attribute__((deprecated))
#endif
VLC_EXPORT( void *, __vlc_object_find, ( vlc_object_t *, int, int ) );
VLC_EXPORT( vlc_object_t *, vlc_object_find_name, ( vlc_object_t *, const char *, int ) );
VLC_EXPORT( void, __vlc_object_yield, ( vlc_object_t * ) );
VLC_EXPORT( void *, __vlc_object_yield, ( vlc_object_t * ) );
VLC_EXPORT( void, __vlc_object_release, ( vlc_object_t * ) );
VLC_EXPORT( vlc_list_t *, __vlc_list_find, ( vlc_object_t *, int, int ) );
VLC_EXPORT( vlc_list_t *, __vlc_list_children, ( vlc_object_t * ) );
......
......@@ -613,7 +613,7 @@ vlc_object_t *vlc_object_find_name( vlc_object_t *p_this,
/**
* Increment an object reference counter.
*/
void __vlc_object_yield( vlc_object_t *p_this )
void * __vlc_object_yield( vlc_object_t *p_this )
{
vlc_object_internals_t *internals = vlc_internals( p_this );
......@@ -623,6 +623,7 @@ void __vlc_object_yield( vlc_object_t *p_this )
/* Increment the counter */
internals->i_refcount++;
vlc_spin_unlock( &internals->ref_spin );
return p_this;
}
/*****************************************************************************
......
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