+
+/**
+ * gst_base_src_get_buffer_pool:
+ * @src: a #GstBaseSrc
+ *
+ * Returns: (transfer full): the instance of the #GstBufferPool used
+ * by the src; free it after use it
+ */
+GstBufferPool *
+gst_base_src_get_buffer_pool (GstBaseSrc * src)
+{
+ g_return_val_if_fail (GST_IS_BASE_SRC (src), NULL);
+
+ if (src->priv->pool)
+ return gst_object_ref (src->priv->pool);
+
+ return NULL;
+}
+
+/**
+ * gst_base_src_get_allocator:
+ * @src: a #GstBaseSrc
+ * @allocator: (out) (allow-none) (transfer full): the #GstAllocator
+ * used
+ * @params: (out) (allow-none) (transfer full): the
+ * #GstAllocatorParams of @allocator
+ *
+ * Lets #GstBaseSrc sub-classes to know the memory @allocator
+ * used by the base class and its @params.
+ *
+ * Unref the @allocator after use it.
+ */
+void
+gst_base_src_get_allocator (GstBaseSrc * src,
+ GstAllocator ** allocator, GstAllocationParams * params)
+{
+ g_return_if_fail (GST_IS_BASE_SRC (src));
+
+ if (allocator)
+ *allocator = src->priv->allocator ?
+ gst_object_ref (src->priv->allocator) : NULL;
+
+ if (params)
+ *params = src->priv->params;
+}