diff options
Diffstat (limited to 'gst')
-rw-r--r-- | gst/adder/gstadder.c | 16 | ||||
-rw-r--r-- | gst/audiorate/gstaudiorate.c | 4 | ||||
-rw-r--r-- | gst/audiotestsrc/gstaudiotestsrc.c | 2 | ||||
-rw-r--r-- | gst/encoding/gstsmartencoder.c | 8 | ||||
-rw-r--r-- | gst/encoding/gststreamcombiner.c | 2 | ||||
-rw-r--r-- | gst/encoding/gststreamsplitter.c | 4 | ||||
-rw-r--r-- | gst/gdp/gstgdppay.c | 6 | ||||
-rw-r--r-- | gst/playback/gstplaybin2.c | 6 | ||||
-rw-r--r-- | gst/playback/gstplaysink.c | 4 | ||||
-rw-r--r-- | gst/playback/gstplaysinkconvertbin.c | 10 | ||||
-rw-r--r-- | gst/playback/gststreamsynchronizer.c | 14 | ||||
-rw-r--r-- | gst/playback/gstsubtitleoverlay.c | 10 | ||||
-rw-r--r-- | gst/playback/gsturidecodebin.c | 2 | ||||
-rw-r--r-- | gst/subparse/gstssaparse.c | 6 | ||||
-rw-r--r-- | gst/subparse/gstsubparse.c | 10 | ||||
-rw-r--r-- | gst/videorate/gstvideorate.c | 2 |
16 files changed, 53 insertions, 53 deletions
diff --git a/gst/adder/gstadder.c b/gst/adder/gstadder.c index c2bdff26f..0e5a2b6e1 100644 --- a/gst/adder/gstadder.c +++ b/gst/adder/gstadder.c @@ -565,7 +565,7 @@ forward_event_func (const GValue * val, GValue * ret, EventData * data) /* quick hack to unflush the pads, ideally we need a way to just unflush * this single collect pad */ if (data->flush) - gst_pad_send_event (pad, gst_event_new_flush_stop (TRUE)); + gst_pad_send_event (pad, gst_event_flush_stop_new (TRUE)); } else { g_value_set_boolean (ret, TRUE); GST_LOG_OBJECT (pad, "Sent event %p (%s).", @@ -649,7 +649,7 @@ gst_adder_src_event (GstPad * pad, GstObject * parent, GstEvent * event) gboolean flush; /* parse the seek parameters */ - gst_event_parse_seek (event, &rate, NULL, &flags, &curtype, + gst_event_seek_parse (event, &rate, NULL, &flags, &curtype, &cur, &endtype, &end); if ((curtype != GST_SEEK_TYPE_NONE) && (curtype != GST_SEEK_TYPE_SET)) { @@ -674,7 +674,7 @@ gst_adder_src_event (GstPad * pad, GstObject * parent, GstEvent * event) /* flushing seek, start flush downstream, the flush will be done * when all pads received a FLUSH_STOP. */ - gst_pad_push_event (adder->srcpad, gst_event_new_flush_start ()); + gst_pad_push_event (adder->srcpad, gst_event_flush_start_new ()); /* We can't send FLUSH_STOP here since upstream could start pushing data * after we unlock adder->collect. @@ -719,7 +719,7 @@ gst_adder_src_event (GstPad * pad, GstObject * parent, GstEvent * event) if (g_atomic_int_compare_and_exchange (&adder->flush_stop_pending, TRUE, FALSE)) { GST_DEBUG_OBJECT (adder, "pending flush stop"); - gst_pad_push_event (adder->srcpad, gst_event_new_flush_stop (TRUE)); + gst_pad_push_event (adder->srcpad, gst_event_flush_stop_new (TRUE)); } break; } @@ -760,7 +760,7 @@ gst_adder_sink_event (GstPad * pad, GstObject * parent, GstEvent * event) { GstCaps *caps; - gst_event_parse_caps (event, &caps); + gst_event_caps_parse (event, &caps); ret = gst_adder_setcaps (adder, pad, caps); gst_event_unref (event); @@ -1072,7 +1072,7 @@ gst_adder_collected (GstCollectPads * pads, gpointer user_data) if (g_atomic_int_compare_and_exchange (&adder->flush_stop_pending, TRUE, FALSE)) { GST_DEBUG_OBJECT (adder, "pending flush stop"); - gst_pad_push_event (adder->srcpad, gst_event_new_flush_stop (TRUE)); + gst_pad_push_event (adder->srcpad, gst_event_flush_stop_new (TRUE)); } /* get available bytes for reading, this can be 0 which could mean empty @@ -1183,7 +1183,7 @@ gst_adder_collected (GstCollectPads * pads, gpointer user_data) * event. We also adjust offset & timestamp acordingly. * This basically ignores all newsegments sent by upstream. */ - event = gst_event_new_segment (&adder->segment); + event = gst_event_segment_new (&adder->segment); if (adder->segment.rate > 0.0) { adder->segment.position = adder->segment.start; @@ -1268,7 +1268,7 @@ not_negotiated: eos: { GST_DEBUG_OBJECT (adder, "no data available, must be EOS"); - gst_pad_push_event (adder->srcpad, gst_event_new_eos ()); + gst_pad_push_event (adder->srcpad, gst_event_eos_new ()); return GST_FLOW_EOS; } } diff --git a/gst/audiorate/gstaudiorate.c b/gst/audiorate/gstaudiorate.c index 3e7d07686..85f1ab349 100644 --- a/gst/audiorate/gstaudiorate.c +++ b/gst/audiorate/gstaudiorate.c @@ -283,7 +283,7 @@ gst_audio_rate_sink_event (GstPad * pad, GstObject * parent, GstEvent * event) { GstCaps *caps; - gst_event_parse_caps (event, &caps); + gst_event_caps_parse (event, &caps); if ((res = gst_audio_rate_setcaps (audiorate, caps))) { res = gst_pad_push_event (audiorate->srcpad, event); } else { @@ -298,7 +298,7 @@ gst_audio_rate_sink_event (GstPad * pad, GstObject * parent, GstEvent * event) break; case GST_EVENT_SEGMENT: { - gst_event_copy_segment (event, &audiorate->sink_segment); + gst_event_segment_copy (event, &audiorate->sink_segment); GST_DEBUG_OBJECT (audiorate, "handle NEWSEGMENT"); #if 0 diff --git a/gst/audiotestsrc/gstaudiotestsrc.c b/gst/audiotestsrc/gstaudiotestsrc.c index 6a5988407..3fd3f2608 100644 --- a/gst/audiotestsrc/gstaudiotestsrc.c +++ b/gst/audiotestsrc/gstaudiotestsrc.c @@ -1120,7 +1120,7 @@ gst_audio_test_src_fill (GstBaseSrc * basesrc, guint64 offset, eclass = GST_ELEMENT_CLASS (parent_class); if (eclass->send_event) eclass->send_event (GST_ELEMENT_CAST (basesrc), - gst_event_new_tag (taglist)); + gst_event_tag_new (taglist)); src->tags_pushed = TRUE; } diff --git a/gst/encoding/gstsmartencoder.c b/gst/encoding/gstsmartencoder.c index ec57f7255..0771c612d 100644 --- a/gst/encoding/gstsmartencoder.c +++ b/gst/encoding/gstsmartencoder.c @@ -200,9 +200,9 @@ gst_smart_encoder_reencode_gop (GstSmartEncoder * smart_encoder) GST_INFO ("Pushing Flush start/stop to clean decoder/encoder"); gst_pad_push_event (smart_encoder->internal_srcpad, - gst_event_new_flush_start ()); + gst_event_flush_start_new ()); gst_pad_push_event (smart_encoder->internal_srcpad, - gst_event_new_flush_stop (TRUE)); + gst_event_flush_stop_new (TRUE)); /* push newsegment */ GST_INFO ("Pushing newsegment %" GST_PTR_FORMAT, smart_encoder->newsegment); @@ -228,7 +228,7 @@ gst_smart_encoder_reencode_gop (GstSmartEncoder * smart_encoder) } } else { GST_INFO ("Pushing out EOS to flush out decoder/encoder"); - gst_pad_push_event (smart_encoder->internal_srcpad, gst_event_new_eos ()); + gst_pad_push_event (smart_encoder->internal_srcpad, gst_event_eos_new ()); } /* Activate elements */ @@ -354,7 +354,7 @@ smart_encoder_sink_event (GstPad * pad, GstObject * parent, GstEvent * event) break; case GST_EVENT_SEGMENT: { - gst_event_copy_segment (event, smart_encoder->segment); + gst_event_segment_copy (event, smart_encoder->segment); GST_DEBUG_OBJECT (smart_encoder, "segment: %" GST_SEGMENT_FORMAT, smart_encoder->segment); diff --git a/gst/encoding/gststreamcombiner.c b/gst/encoding/gststreamcombiner.c index 5cf762993..059d114b0 100644 --- a/gst/encoding/gststreamcombiner.c +++ b/gst/encoding/gststreamcombiner.c @@ -114,7 +114,7 @@ gst_stream_combiner_sink_event (GstPad * pad, GstObject * parent, case GST_EVENT_CUSTOM_DOWNSTREAM: if (gst_event_has_name (event, "stream-switching-eos")) { gst_event_unref (event); - event = gst_event_new_eos (); + event = gst_event_eos_new (); } break; default: diff --git a/gst/encoding/gststreamsplitter.c b/gst/encoding/gststreamsplitter.c index a7d337628..a848d3006 100644 --- a/gst/encoding/gststreamsplitter.c +++ b/gst/encoding/gststreamsplitter.c @@ -161,7 +161,7 @@ gst_stream_splitter_sink_event (GstPad * pad, GstObject * parent, { GstCaps *caps; - gst_event_parse_caps (event, &caps); + gst_event_caps_parse (event, &caps); res = gst_stream_splitter_sink_setcaps (pad, caps); store = TRUE; @@ -222,7 +222,7 @@ gst_stream_splitter_sink_event (GstPad * pad, GstObject * parent, * before our custom one (which will be converted back to and EOS * in the streamcombiner) */ if (eos) - gst_pad_push_event (srcpad, gst_event_new_eos ()); + gst_pad_push_event (srcpad, gst_event_eos_new ()); gst_event_ref (event); res = gst_pad_push_event (srcpad, event); STREAMS_LOCK (stream_splitter); diff --git a/gst/gdp/gstgdppay.c b/gst/gdp/gstgdppay.c index b9c3cbc78..dd5fa6d0f 100644 --- a/gst/gdp/gstgdppay.c +++ b/gst/gdp/gstgdppay.c @@ -460,7 +460,7 @@ gst_gdp_pay_reset_streamheader (GstGDPPay * this) GstSegment segment; gst_segment_init (&segment, GST_FORMAT_BYTES); - event = gst_event_new_segment (&segment); + event = gst_event_segment_new (&segment); GST_DEBUG_OBJECT (this, "Sending out new_segment event %p", event); if (!gst_pad_push_event (this->srcpad, event)) { @@ -571,7 +571,7 @@ gst_gdp_pay_chain (GstPad * pad, GstObject * parent, GstBuffer * buffer) GST_WARNING_OBJECT (this, "did not receive new-segment before first buffer"); gst_segment_init (&segment, GST_FORMAT_BYTES); - event = gst_event_new_segment (&segment); + event = gst_event_segment_new (&segment); outbuffer = gst_gdp_buffer_from_event (this, event); gst_event_unref (event); @@ -708,7 +708,7 @@ gst_gdp_pay_sink_event (GstPad * pad, GstObject * parent, GstEvent * event) gst_gdp_pay_reset_streamheader (this); break; case GST_EVENT_CAPS:{ - gst_event_parse_caps (event, &caps); + gst_event_caps_parse (event, &caps); if (this->caps == NULL || !gst_caps_is_equal (this->caps, caps)) { GST_INFO_OBJECT (pad, "caps changed to %" GST_PTR_FORMAT, caps); gst_caps_replace (&this->caps, caps); diff --git a/gst/playback/gstplaybin2.c b/gst/playback/gstplaybin2.c index 6fc3bd3fb..60039e04f 100644 --- a/gst/playback/gstplaybin2.c +++ b/gst/playback/gstplaybin2.c @@ -1634,11 +1634,11 @@ gst_play_bin_suburidecodebin_seek_to_start (GstElement * suburidecodebin) GstEvent *event; event = - gst_event_new_seek (1.0, GST_FORMAT_BYTES, GST_SEEK_FLAG_NONE, + gst_event_seek_new (1.0, GST_FORMAT_BYTES, GST_SEEK_FLAG_NONE, GST_SEEK_TYPE_SET, 0, GST_SEEK_TYPE_NONE, -1); if (!gst_pad_send_event (sinkpad, event)) { event = - gst_event_new_seek (1.0, GST_FORMAT_TIME, GST_SEEK_FLAG_NONE, + gst_event_seek_new (1.0, GST_FORMAT_TIME, GST_SEEK_FLAG_NONE, GST_SEEK_TYPE_SET, 0, GST_SEEK_TYPE_NONE, -1); if (!gst_pad_send_event (sinkpad, event)) GST_DEBUG_OBJECT (suburidecodebin, "Seeking to the beginning failed!"); @@ -2880,7 +2880,7 @@ no_more_pads_cb (GstElement * decodebin, GstSourceGroup * group) gst_structure_set (s, "suburi", G_TYPE_STRING, group->suburi, NULL); msg = gst_message_new_element (GST_OBJECT_CAST (playbin), s); seqnum = gst_message_get_seqnum (msg); - event = gst_event_new_sink_message (msg); + event = gst_event_sink_message_new (msg); g_mutex_lock (group->stream_changed_pending_lock); group->stream_changed_pending = g_list_prepend (group->stream_changed_pending, diff --git a/gst/playback/gstplaysink.c b/gst/playback/gstplaysink.c index 09c35391f..be455d835 100644 --- a/gst/playback/gstplaysink.c +++ b/gst/playback/gstplaysink.c @@ -3333,7 +3333,7 @@ gst_play_sink_handle_message (GstBin * bin, GstMessage * message) GstEvent *event; event = - gst_event_new_step (GST_FORMAT_TIME, duration, rate, flush, + gst_event_step_new (GST_FORMAT_TIME, duration, rate, flush, intermediate); if (!gst_element_send_event (playsink->audiochain->chain.bin, event)) { @@ -3415,7 +3415,7 @@ gst_play_sink_send_event (GstElement * element, GstEvent * event) gdouble rate; gboolean flush, intermediate; - gst_event_parse_step (event, &format, &amount, &rate, &flush, + gst_event_step_parse (event, &format, &amount, &rate, &flush, &intermediate); if (format == GST_FORMAT_BUFFERS) { diff --git a/gst/playback/gstplaysinkconvertbin.c b/gst/playback/gstplaysinkconvertbin.c index dbd233b9c..6bc225053 100644 --- a/gst/playback/gstplaysinkconvertbin.c +++ b/gst/playback/gstplaysinkconvertbin.c @@ -84,10 +84,10 @@ distribute_running_time (GstElement * element, const GstSegment * segment) pad = gst_element_get_static_pad (element, "sink"); - gst_pad_send_event (pad, gst_event_new_flush_start ()); - gst_pad_send_event (pad, gst_event_new_flush_stop (FALSE)); + gst_pad_send_event (pad, gst_event_flush_start_new ()); + gst_pad_send_event (pad, gst_event_flush_stop_new (FALSE)); - event = gst_event_new_segment (segment); + event = gst_event_segment_new (segment); gst_pad_send_event (pad, event); gst_object_unref (pad); @@ -259,7 +259,7 @@ gst_play_sink_convert_bin_sink_event (GstPad * pad, GstObject * parent, { GstCaps *caps; - gst_event_parse_caps (event, &caps); + gst_event_caps_parse (event, &caps); ret = gst_play_sink_convert_bin_sink_setcaps (self, caps); break; } @@ -273,7 +273,7 @@ gst_play_sink_convert_bin_sink_event (GstPad * pad, GstObject * parent, GstSegment seg; GST_PLAY_SINK_CONVERT_BIN_LOCK (self); - gst_event_copy_segment (event, &seg); + gst_event_segment_copy (event, &seg); GST_DEBUG_OBJECT (self, "Segment before %" GST_SEGMENT_FORMAT, &self->segment); diff --git a/gst/playback/gststreamsynchronizer.c b/gst/playback/gststreamsynchronizer.c index 5dca2820d..a6f320cd2 100644 --- a/gst/playback/gststreamsynchronizer.c +++ b/gst/playback/gststreamsynchronizer.c @@ -175,7 +175,7 @@ gst_stream_synchronizer_src_event (GstPad * pad, GstObject * parent, gint64 running_time_diff; GstStream *stream; - gst_event_parse_qos (event, NULL, &proportion, &diff, ×tamp); + gst_event_qos_parse (event, NULL, &proportion, &diff, ×tamp); gst_event_unref (event); GST_STREAM_SYNCHRONIZER_LOCK (self); @@ -210,7 +210,7 @@ gst_stream_synchronizer_src_event (GstPad * pad, GstObject * parent, } event = - gst_event_new_qos (GST_QOS_TYPE_UNDERFLOW, proportion, diff, + gst_event_qos_new (GST_QOS_TYPE_UNDERFLOW, proportion, diff, timestamp); break; } @@ -249,7 +249,7 @@ gst_stream_synchronizer_sink_event (GstPad * pad, GstObject * parent, case GST_EVENT_SINK_MESSAGE:{ GstMessage *message; - gst_event_parse_sink_message (event, &message); + gst_event_sink_message_parse (event, &message); if (gst_message_has_name (message, "playbin-stream-changed")) { GstStream *stream; @@ -312,7 +312,7 @@ gst_stream_synchronizer_sink_event (GstPad * pad, GstObject * parent, GstStream *stream; GstSegment segment; - gst_event_copy_segment (event, &segment); + gst_event_segment_copy (event, &segment); GST_STREAM_SYNCHRONIZER_LOCK (self); stream = gst_pad_get_element_private (pad); @@ -358,7 +358,7 @@ gst_stream_synchronizer_sink_event (GstPad * pad, GstObject * parent, GST_DEBUG_OBJECT (pad, "Updating stop position"); stream->segment.stop = stream->segment.position; gst_pad_push_event (stream->srcpad, - gst_event_new_segment (&stream->segment)); + gst_event_segment_new (&stream->segment)); } stop_running_time = MAX (stop_running_time, position_running_time); GST_DEBUG_OBJECT (pad, @@ -465,7 +465,7 @@ gst_stream_synchronizer_sink_event (GstPad * pad, GstObject * parent, while (epad) { pad = epad->data; GST_DEBUG_OBJECT (pad, "Pushing EOS"); - ret = ret && gst_pad_push_event (pad, gst_event_new_eos ()); + ret = ret && gst_pad_push_event (pad, gst_event_eos_new ()); gst_object_unref (pad); epad = g_slist_next (epad); } @@ -607,7 +607,7 @@ gst_stream_synchronizer_sink_chain (GstPad * pad, GstObject * parent, ostream->segment.position = new_start; gst_pad_push_event (ostream->srcpad, - gst_event_new_segment (&ostream->segment)); + gst_event_segment_new (&ostream->segment)); } } GST_STREAM_SYNCHRONIZER_UNLOCK (self); diff --git a/gst/playback/gstsubtitleoverlay.c b/gst/playback/gstsubtitleoverlay.c index 03dea41cc..90a5f5792 100644 --- a/gst/playback/gstsubtitleoverlay.c +++ b/gst/playback/gstsubtitleoverlay.c @@ -580,7 +580,7 @@ _generate_update_segment_event (GstSegment * segment, GstEvent ** event1) GstEvent *event; GstStructure *structure; - event = gst_event_new_segment (segment); + event = gst_event_segment_new (segment); structure = gst_event_writable_structure (event); gst_structure_id_set (structure, _subtitle_overlay_event_marker_id, G_TYPE_BOOLEAN, TRUE, NULL); @@ -1763,7 +1763,7 @@ gst_subtitle_overlay_video_sink_event (GstPad * pad, GstObject * parent, { GstCaps *caps; - gst_event_parse_caps (event, &caps); + gst_event_caps_parse (event, &caps); ret = gst_subtitle_overlay_video_sink_setcaps (self, caps); if (!ret) goto done; @@ -1777,7 +1777,7 @@ gst_subtitle_overlay_video_sink_event (GstPad * pad, GstObject * parent, if (GST_EVENT_TYPE (event) == GST_EVENT_SEGMENT) { GST_DEBUG_OBJECT (pad, "segment event: %" GST_PTR_FORMAT, event); - gst_event_copy_segment (event, &self->video_segment); + gst_event_segment_copy (event, &self->video_segment); if (self->video_segment.format != GST_FORMAT_TIME) goto invalid_format; @@ -1999,7 +1999,7 @@ gst_subtitle_overlay_subtitle_sink_event (GstPad * pad, GstObject * parent, { GstCaps *caps; - gst_event_parse_caps (event, &caps); + gst_event_caps_parse (event, &caps); ret = gst_subtitle_overlay_subtitle_sink_setcaps (self, caps); if (!ret) goto out; @@ -2033,7 +2033,7 @@ gst_subtitle_overlay_subtitle_sink_event (GstPad * pad, GstObject * parent, if (GST_EVENT_TYPE (event) == GST_EVENT_SEGMENT) { GST_DEBUG_OBJECT (pad, "segment event: %" GST_PTR_FORMAT, event); - gst_event_copy_segment (event, &self->subtitle_segment); + gst_event_segment_copy (event, &self->subtitle_segment); GST_DEBUG_OBJECT (pad, "New subtitle segment: %" GST_SEGMENT_FORMAT, &self->subtitle_segment); } diff --git a/gst/playback/gsturidecodebin.c b/gst/playback/gsturidecodebin.c index 95d2bfc26..13e16fb1e 100644 --- a/gst/playback/gsturidecodebin.c +++ b/gst/playback/gsturidecodebin.c @@ -1004,7 +1004,7 @@ decoded_pad_event_probe (GstPad * pad, GstPadProbeInfo * info, guint bitrate = 0; GstURIDecodeBinStream *stream; - gst_event_parse_tag (event, &list); + gst_event_tag_parse (event, &list); if (!gst_tag_list_get_uint_index (list, GST_TAG_NOMINAL_BITRATE, 0, &bitrate)) { gst_tag_list_get_uint_index (list, GST_TAG_BITRATE, 0, &bitrate); diff --git a/gst/subparse/gstssaparse.c b/gst/subparse/gstssaparse.c index f94153d6b..03caa10e0 100644 --- a/gst/subparse/gstssaparse.c +++ b/gst/subparse/gstssaparse.c @@ -130,7 +130,7 @@ gst_ssa_parse_sink_event (GstPad * pad, GstObject * parent, GstEvent * event) { GstCaps *caps; - gst_event_parse_caps (event, &caps); + gst_event_caps_parse (event, &caps); res = gst_ssa_parse_setcaps (pad, caps); gst_event_unref (event); break; @@ -325,7 +325,7 @@ gst_ssa_parse_chain (GstPad * sinkpad, GstObject * parent, GstBuffer * buf) tags = gst_tag_list_new_empty (); gst_tag_list_add (tags, GST_TAG_MERGE_APPEND, GST_TAG_SUBTITLE_CODEC, "SubStation Alpha", NULL); - gst_pad_push_event (parse->srcpad, gst_event_new_tag (tags)); + gst_pad_push_event (parse->srcpad, gst_event_tag_new (tags)); parse->send_tags = FALSE; } @@ -347,7 +347,7 @@ gst_ssa_parse_chain (GstPad * sinkpad, GstObject * parent, GstBuffer * buf) gst_segment_init (&segment, GST_FORMAT_TIME); segment.start = ts; segment.time = ts; - gst_pad_push_event (parse->srcpad, gst_event_new_segment (&segment)); + gst_pad_push_event (parse->srcpad, gst_event_segment_new (&segment)); ret = GST_FLOW_OK; } diff --git a/gst/subparse/gstsubparse.c b/gst/subparse/gstsubparse.c index 404be726a..003062e97 100644 --- a/gst/subparse/gstsubparse.c +++ b/gst/subparse/gstsubparse.c @@ -279,7 +279,7 @@ gst_sub_parse_src_event (GstPad * pad, GstObject * parent, GstEvent * event) gdouble rate; gboolean update; - gst_event_parse_seek (event, &rate, &format, &flags, + gst_event_seek_parse (event, &rate, &format, &flags, &start_type, &start, &stop_type, &stop); if (format != GST_FORMAT_TIME) { @@ -291,7 +291,7 @@ gst_sub_parse_src_event (GstPad * pad, GstObject * parent, GstEvent * event) /* Convert that seek to a seeking in bytes at position 0, FIXME: could use an index */ ret = gst_pad_push_event (self->sinkpad, - gst_event_new_seek (rate, GST_FORMAT_BYTES, flags, + gst_event_seek_new (rate, GST_FORMAT_BYTES, flags, GST_SEEK_TYPE_SET, 0, GST_SEEK_TYPE_NONE, 0)); if (ret) { @@ -1466,7 +1466,7 @@ handle_buffer (GstSubParse * self, GstBuffer * buf) tags = gst_tag_list_new (GST_TAG_SUBTITLE_CODEC, self->subtitle_codec, NULL); - gst_pad_push_event (self->srcpad, gst_event_new_tag (tags)); + gst_pad_push_event (self->srcpad, gst_event_tag_new (tags)); } } @@ -1541,7 +1541,7 @@ gst_sub_parse_chain (GstPad * sinkpad, GstObject * parent, GstBuffer * buf) GST_LOG_OBJECT (self, "pushing newsegment event with %" GST_SEGMENT_FORMAT, &self->segment); - gst_pad_push_event (self->srcpad, gst_event_new_segment (&self->segment)); + gst_pad_push_event (self->srcpad, gst_event_segment_new (&self->segment)); self->need_segment = FALSE; } @@ -1581,7 +1581,7 @@ gst_sub_parse_sink_event (GstPad * pad, GstObject * parent, GstEvent * event) } case GST_EVENT_SEGMENT: { - gst_event_copy_segment (event, &self->segment); + gst_event_segment_copy (event, &self->segment); GST_DEBUG_OBJECT (self, "newsegment (%s)", gst_format_get_name (self->segment.format)); diff --git a/gst/videorate/gstvideorate.c b/gst/videorate/gstvideorate.c index 3317af252..bfddde663 100644 --- a/gst/videorate/gstvideorate.c +++ b/gst/videorate/gstvideorate.c @@ -668,7 +668,7 @@ gst_video_rate_sink_event (GstBaseTransform * trans, GstEvent * event) { const GstSegment *segment; - gst_event_parse_segment (event, &segment); + gst_event_segment_parse (event, &segment); if (segment->format != GST_FORMAT_TIME) goto format_error; |