For consistency with GstAudioAggregator.
GstPadTemplate * temp, const gchar * req_name, const GstCaps * caps);
static void gst_gl_stereo_mix_release_pad (GstElement * element, GstPad * pad);
-static GstFlowReturn gst_gl_stereo_mix_get_output_buffer (GstVideoAggregator *
- videoaggregator, GstBuffer ** outbuf);
+static GstFlowReturn gst_gl_stereo_mix_create_output_buffer (GstVideoAggregator
+ * videoaggregator, GstBuffer ** outbuf);
static gboolean gst_gl_stereo_mix_stop (GstAggregator * agg);
static gboolean gst_gl_stereo_mix_start (GstAggregator * agg);
static gboolean gst_gl_stereo_mix_src_query (GstAggregator * agg,
videoaggregator_class->aggregate_frames = gst_gl_stereo_mix_aggregate_frames;
videoaggregator_class->update_caps = _update_caps;
- videoaggregator_class->get_output_buffer =
- gst_gl_stereo_mix_get_output_buffer;
+ videoaggregator_class->create_output_buffer =
+ gst_gl_stereo_mix_create_output_buffer;
base_mix_class->supported_gl_api =
GST_GL_API_GLES2 | GST_GL_API_OPENGL | GST_GL_API_OPENGL3;
static GstFlowReturn
-gst_gl_stereo_mix_get_output_buffer (GstVideoAggregator * videoaggregator,
+gst_gl_stereo_mix_create_output_buffer (GstVideoAggregator * videoaggregator,
GstBuffer ** outbuf)
{
GstGLStereoMix *mix = GST_GL_STEREO_MIX (videoaggregator);
GstVideoAggregatorClass *vagg_klass = (GstVideoAggregatorClass *) klass;
g_assert (vagg_klass->aggregate_frames != NULL);
- g_assert (vagg_klass->get_output_buffer != NULL);
+ g_assert (vagg_klass->create_output_buffer != NULL);
- if ((ret = vagg_klass->get_output_buffer (vagg, outbuf)) != GST_FLOW_OK) {
+ if ((ret = vagg_klass->create_output_buffer (vagg, outbuf)) != GST_FLOW_OK) {
GST_WARNING_OBJECT (vagg, "Could not get an output buffer, reason: %s",
gst_flow_get_name (ret));
return ret;
}
static GstFlowReturn
-gst_video_aggregator_get_output_buffer (GstVideoAggregator * videoaggregator,
+gst_video_aggregator_create_output_buffer (GstVideoAggregator * videoaggregator,
GstBuffer ** outbuf)
{
GstAggregator *aggregator = GST_AGGREGATOR (videoaggregator);
agg_class->propose_allocation = gst_video_aggregator_propose_allocation;
klass->find_best_format = gst_video_aggregator_find_best_format;
- klass->get_output_buffer = gst_video_aggregator_get_output_buffer;
+ klass->create_output_buffer = gst_video_aggregator_create_output_buffer;
klass->update_caps = gst_video_aggregator_default_update_caps;
/* Register the pad class */
* or directly use the #GstBuffer from GstVideoAggregatorPad.buffer
* if it needs to map the buffer in a special way. The result of the
* aggregation should land in @outbuffer.
- * @get_output_buffer: Optional.
+ * @create_output_buffer: Optional.
* Lets subclasses provide a #GstBuffer to be used as @outbuffer of
* the #aggregate_frames vmethod.
* @negotiated_caps: Optional.
GstCaps * caps);
GstFlowReturn (*aggregate_frames) (GstVideoAggregator * videoaggregator,
GstBuffer * outbuffer);
- GstFlowReturn (*get_output_buffer) (GstVideoAggregator * videoaggregator,
+ GstFlowReturn (*create_output_buffer) (GstVideoAggregator * videoaggregator,
GstBuffer ** outbuffer);
void (*find_best_format) (GstVideoAggregator * vagg,
GstCaps * downstream_caps,