mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
pad: add method to mark reconfigure
This commit is contained in:
parent
6bae6b8253
commit
99d4880f31
2 changed files with 18 additions and 0 deletions
17
gst/gstpad.c
17
gst/gstpad.c
|
@ -1263,6 +1263,23 @@ gst_pad_check_reconfigure (GstPad * pad)
|
|||
return reconfigure;
|
||||
}
|
||||
|
||||
/**
|
||||
* gst_pad_mark_reconfigure:
|
||||
* @pad: the #GstPad to mark
|
||||
*
|
||||
* Mark a pad for needing reconfiguration. The next call to
|
||||
* gst_pad_check_reconfigure() will return %TRUE after this call.
|
||||
*/
|
||||
void
|
||||
gst_pad_mark_reconfigure (GstPad * pad)
|
||||
{
|
||||
g_return_if_fail (GST_IS_PAD (pad));
|
||||
|
||||
GST_OBJECT_LOCK (pad);
|
||||
GST_OBJECT_FLAG_SET (pad, GST_PAD_NEED_RECONFIGURE);
|
||||
GST_OBJECT_UNLOCK (pad);
|
||||
}
|
||||
|
||||
/**
|
||||
* gst_pad_set_activate_function:
|
||||
* @pad: a #GstPad.
|
||||
|
|
|
@ -827,6 +827,7 @@ void gst_pad_remove_probe (GstPad *pad, gu
|
|||
gboolean gst_pad_is_blocked (GstPad *pad);
|
||||
gboolean gst_pad_is_blocking (GstPad *pad);
|
||||
|
||||
void gst_pad_mark_reconfigure (GstPad *pad);
|
||||
gboolean gst_pad_check_reconfigure (GstPad *pad);
|
||||
|
||||
void gst_pad_set_element_private (GstPad *pad, gpointer priv);
|
||||
|
|
Loading…
Reference in a new issue