pad: add method to mark reconfigure

This commit is contained in:
Wim Taymans 2011-08-04 17:12:21 +02:00
parent 6bae6b8253
commit 99d4880f31
2 changed files with 18 additions and 0 deletions

View file

@ -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.

View file

@ -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);