Commit 22763366 authored by Lawrence Troup's avatar Lawrence Troup Committed by Sebastian Dröge

pad: Document that pad unlink function is called with pad lock held

Fixes #353
parent f62ee975
......@@ -2082,6 +2082,10 @@ gst_pad_set_link_function_full (GstPad * pad, GstPadLinkFunction link,
*
* Sets the given unlink function for the pad. It will be called
* when the pad is unlinked.
*
* Note that the pad's lock is already held when the unlink
* function is called, so most pad functions cannot be called
* from within the callback.
*/
void
gst_pad_set_unlink_function_full (GstPad * pad, GstPadUnlinkFunction unlink,
......
......@@ -452,6 +452,9 @@ typedef GstPadLinkReturn (*GstPadLinkFunction) (GstPad *pad, GstObject *parent,
* during the execution of this function.
*
* Function signature to handle a unlinking the pad prom its peer.
*
* The pad's lock is already held when the unlink function is called, so most
* pad functions cannot be called from within the callback.
*/
typedef void (*GstPadUnlinkFunction) (GstPad *pad, GstObject *parent);
......
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