iqa: Fix build with latest aggregator API changes

This commit is contained in:
Sebastian Dröge 2018-03-02 21:53:47 +02:00
parent 9865904d88
commit 2b4f8ab027

View file

@ -268,7 +268,7 @@ gst_iqa_aggregate_frames (GstVideoAggregator * vagg, GstBuffer * outbuf)
* is locked. * is locked.
*/ */
gst_structure_set (msg_structure, "time", GST_TYPE_CLOCK_TIME, gst_structure_set (msg_structure, "time", GST_TYPE_CLOCK_TIME,
agg->segment.position, NULL); GST_AGGREGATOR_PAD (agg->srcpad)->segment.position, NULL);
gst_element_post_message (GST_ELEMENT (self), m); gst_element_post_message (GST_ELEMENT (self), m);
return GST_FLOW_OK; return GST_FLOW_OK;
@ -321,10 +321,10 @@ gst_iqa_class_init (GstIqaClass * klass)
videoaggregator_class->aggregate_frames = gst_iqa_aggregate_frames; videoaggregator_class->aggregate_frames = gst_iqa_aggregate_frames;
gst_element_class_add_pad_template (gstelement_class, gst_element_class_add_static_pad_template_with_gtype (gstelement_class,
gst_static_pad_template_get (&src_factory)); &src_factory, GST_TYPE_AGGREGATOR_PAD);
gst_element_class_add_pad_template (gstelement_class, gst_element_class_add_static_pad_template_with_gtype (gstelement_class,
gst_static_pad_template_get (&sink_factory)); &sink_factory, GST_TYPE_VIDEO_AGGREGATOR_PAD);
gobject_class->set_property = _set_property; gobject_class->set_property = _set_property;
gobject_class->get_property = _get_property; gobject_class->get_property = _get_property;