summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMathieu Duponchelle <mathieu@centricular.com>2018-03-01 00:34:20 +0100
committerMathieu Duponchelle <mathieu@centricular.com>2018-03-01 15:35:24 +0100
commit273d2c23d9cc43835a4efca3d1e092b446a13aeb (patch)
tree7685957ca2adba71e906e8fb461b3670e7b44d5c
parent3e5d92243bc52a153a85347a52ab9aeaccc3a15a (diff)
Port to latest GstAggregator segment API
The aggregator segment is now exposed on the src pad https://bugzilla.gnome.org/show_bug.cgi?id=793945
-rw-r--r--gst/flv/gstflvmux.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gst/flv/gstflvmux.c b/gst/flv/gstflvmux.c
index ac907e077..7e3aab4a1 100644
--- a/gst/flv/gstflvmux.c
+++ b/gst/flv/gstflvmux.c
@@ -244,7 +244,8 @@ gst_flv_mux_class_init (GstFlvMuxClass * klass)
&videosink_templ, GST_TYPE_FLV_MUX_PAD);
gst_element_class_add_static_pad_template_with_gtype (gstelement_class,
&audiosink_templ, GST_TYPE_FLV_MUX_PAD);
- gst_element_class_add_static_pad_template (gstelement_class, &src_templ);
+ gst_element_class_add_static_pad_template_with_gtype (gstelement_class,
+ &src_templ, GST_TYPE_AGGREGATOR_PAD);
gst_element_class_set_static_metadata (gstelement_class, "FLV muxer",
"Codec/Muxer",
"Muxes video/audio streams into a FLV stream",
@@ -1804,5 +1805,5 @@ static GstClockTime
gst_flv_mux_get_next_time (GstAggregator * aggregator)
{
return gst_flv_mux_get_next_time_for_segment (aggregator,
- &aggregator->segment);
+ &GST_AGGREGATOR_PAD (aggregator->srcpad)->segment);
}