diff options
Diffstat (limited to 'gst-libs/gst/cairo/gstcairopad.c')
-rw-r--r-- | gst-libs/gst/cairo/gstcairopad.c | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/gst-libs/gst/cairo/gstcairopad.c b/gst-libs/gst/cairo/gstcairopad.c index 96e74c8..a6c7574 100644 --- a/gst-libs/gst/cairo/gstcairopad.c +++ b/gst-libs/gst/cairo/gstcairopad.c @@ -43,6 +43,19 @@ **/ /** + * GstCairoRestrictCapsFunction: + * @caps: caps to restrict + * @data: data passed to gst_cairo_pad_alloc_buffer_full() + * + * Function used when fixating caps in gst_cairo_pad_alloc_buffer_full(). + * The function is supposed to return a possibly reduced #GstCaps that + * should be used for caps negotiation. If the restricted caps would be + * empty, this function should return %NULL. + * + * Returns: %NULL or a subset of the given caps. + */ + +/** * gst_cairo_pad_alloc_buffer: * @pad: a source pad * @buffer: pointer to set the allocated buffer on @@ -63,7 +76,7 @@ gst_cairo_pad_alloc_buffer (GstPad * pad, GstBuffer ** buffer) /** * gst_cairo_pad_alloc_buffer_full: * @pad: a source pad - * @restrict_func: function that restricts allowed caps. + * @restrict_func: function that restricts allowed caps or %NULL * @restrict_data: data to pass to @restrict_func * @set_caps: %TRUE to set caps on @pad if the pad doesn't have caps yet. * @buffer: location to store newly allocated buffer |