summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@collabora.co.uk>2011-11-16 02:25:26 +0100
committerWim Taymans <wim.taymans@collabora.co.uk>2011-11-23 06:19:32 +0100
commitaed7f2aeee24ee2b9d92718fd90013054cdaed25 (patch)
tree7e2e770360de21b934350aee493aca0878b838d1 /ext
parente8fb8cb52351b0acea2c022a9397da9748daa336 (diff)
rename eventsrename-events
Diffstat (limited to 'ext')
-rw-r--r--ext/gio/gstgiobasesink.c2
-rw-r--r--ext/libvisual/visual.c8
-rw-r--r--ext/ogg/gstoggaviparse.c4
-rw-r--r--ext/ogg/gstoggdemux.c40
-rw-r--r--ext/ogg/gstoggmux.c8
-rw-r--r--ext/ogg/gstoggparse.c2
-rw-r--r--ext/ogg/gstogmparse.c4
-rw-r--r--ext/pango/gstbasetextoverlay.c14
-rw-r--r--ext/pango/gsttextrender.c2
-rw-r--r--ext/theora/gsttheoradec.c12
-rw-r--r--ext/theora/gsttheoraenc.c4
-rw-r--r--ext/vorbis/gstvorbisdec.c8
-rw-r--r--ext/vorbis/gstvorbisenc.c2
13 files changed, 55 insertions, 55 deletions
diff --git a/ext/gio/gstgiobasesink.c b/ext/gio/gstgiobasesink.c
index 6ececec5b..ea8d42da8 100644
--- a/ext/gio/gstgiobasesink.c
+++ b/ext/gio/gstgiobasesink.c
@@ -210,7 +210,7 @@ gst_gio_base_sink_event (GstBaseSink * base_sink, GstEvent * event)
if (G_IS_OUTPUT_STREAM (sink->stream)) {
const GstSegment *segment;
- gst_event_parse_segment (event, &segment);
+ gst_event_segment_parse (event, &segment);
if (segment->format != GST_FORMAT_BYTES) {
GST_WARNING_OBJECT (sink, "ignored SEGMENT event in %s format",
diff --git a/ext/libvisual/visual.c b/ext/libvisual/visual.c
index 6f6d65baf..6a92bb944 100644
--- a/ext/libvisual/visual.c
+++ b/ext/libvisual/visual.c
@@ -371,7 +371,7 @@ gst_visual_src_setcaps (GstVisual * visual, GstCaps * caps)
visual->duration =
gst_util_uint64_scale_int (GST_SECOND, visual->fps_d, visual->fps_n);
- res = gst_pad_push_event (visual->srcpad, gst_event_new_caps (caps));
+ res = gst_pad_push_event (visual->srcpad, gst_event_caps_new (caps));
return res;
@@ -527,7 +527,7 @@ gst_visual_sink_event (GstPad * pad, GstObject * parent, GstEvent * event)
{
GstCaps *caps;
- gst_event_parse_caps (event, &caps);
+ gst_event_caps_parse (event, &caps);
res = gst_visual_sink_setcaps (pad, caps);
gst_event_unref (event);
break;
@@ -537,7 +537,7 @@ gst_visual_sink_event (GstPad * pad, GstObject * parent, GstEvent * event)
/* the newsegment values are used to clip the input samples
* and to convert the incomming timestamps to running time so
* we can do QoS */
- gst_event_copy_segment (event, &visual->segment);
+ gst_event_segment_copy (event, &visual->segment);
/* and forward */
res = gst_pad_push_event (visual->srcpad, event);
@@ -566,7 +566,7 @@ gst_visual_src_event (GstPad * pad, GstObject * parent, GstEvent * event)
GstClockTimeDiff diff;
GstClockTime timestamp;
- gst_event_parse_qos (event, NULL, &proportion, &diff, &timestamp);
+ gst_event_qos_parse (event, NULL, &proportion, &diff, &timestamp);
/* save stuff for the _chain function */
GST_OBJECT_LOCK (visual);
diff --git a/ext/ogg/gstoggaviparse.c b/ext/ogg/gstoggaviparse.c
index 0d635d212..feba8d93f 100644
--- a/ext/ogg/gstoggaviparse.c
+++ b/ext/ogg/gstoggaviparse.c
@@ -253,7 +253,7 @@ gst_ogg_avi_parse_setcaps (GstPad * pad, GstCaps * caps)
/* set caps */
outcaps = gst_caps_new_empty_simple ("audio/x-vorbis");
- gst_pad_push_event (ogg->srcpad, gst_event_new_caps (outcaps));
+ gst_pad_push_event (ogg->srcpad, gst_event_caps_new (outcaps));
gst_caps_unref (outcaps);
/* copy header data */
@@ -303,7 +303,7 @@ gst_ogg_avi_parse_event (GstPad * pad, GstObject * parent, GstEvent * event)
{
GstCaps *caps;
- gst_event_parse_caps (event, &caps);
+ gst_event_caps_parse (event, &caps);
ret = gst_ogg_avi_parse_setcaps (pad, caps);
gst_event_unref (event);
break;
diff --git a/ext/ogg/gstoggdemux.c b/ext/ogg/gstoggdemux.c
index b0907baea..35984b112 100644
--- a/ext/ogg/gstoggdemux.c
+++ b/ext/ogg/gstoggdemux.c
@@ -958,7 +958,7 @@ gst_ogg_pad_submit_packet (GstOggPad * pad, ogg_packet * packet)
segment.start = ogg->push_seek_time_original_target;
segment.stop = -1;
segment.time = ogg->push_seek_time_original_target;
- event = gst_event_new_segment (&segment);
+ event = gst_event_segment_new (&segment);
ogg->push_state = PUSH_PLAYING;
} else {
segment.rate = ogg->segment.rate;
@@ -966,7 +966,7 @@ gst_ogg_pad_submit_packet (GstOggPad * pad, ogg_packet * packet)
segment.start = start_time;
segment.stop = chain->segment_stop;
segment.time = segment_time;
- event = gst_event_new_segment (&segment);
+ event = gst_event_segment_new (&segment);
}
GST_PUSH_UNLOCK (ogg);
@@ -992,7 +992,7 @@ gst_ogg_pad_submit_packet (GstOggPad * pad, ogg_packet * packet)
segment.start = chain->segment_start;
segment.stop = chain->segment_stop;
segment.time = chain->begin_time;
- event = gst_event_new_segment (&segment);
+ event = gst_event_segment_new (&segment);
}
}
@@ -1227,7 +1227,7 @@ gst_ogg_demux_seek_back_after_push_duration_check_unlock (GstOggDemux * ogg)
} else {
/* If there wasn't, seek back at start to start normal playback */
GST_INFO_OBJECT (ogg, "Seeking back to 0 after duration check");
- event = gst_event_new_seek (1.0, GST_FORMAT_BYTES,
+ event = gst_event_seek_new (1.0, GST_FORMAT_BYTES,
GST_SEEK_FLAG_ACCURATE | GST_SEEK_FLAG_FLUSH,
GST_SEEK_TYPE_SET, 1, GST_SEEK_TYPE_NONE, GST_CLOCK_TIME_NONE);
if (!gst_pad_push_event (ogg->sinkpad, event)) {
@@ -1471,7 +1471,7 @@ gst_ogg_pad_handle_push_mode_state (GstOggPad * pad, ogg_page * page)
g_assert (best != -1);
ogg->push_bisection_steps[ogg->push_state == PUSH_BISECT2 ? 1 : 0]++;
sevent =
- gst_event_new_seek (ogg->push_seek_rate, GST_FORMAT_BYTES,
+ gst_event_seek_new (ogg->push_seek_rate, GST_FORMAT_BYTES,
ogg->push_seek_flags, GST_SEEK_TYPE_SET, best,
GST_SEEK_TYPE_NONE, -1);
@@ -1905,7 +1905,7 @@ gst_ogg_demux_sink_event (GstPad * pad, GstObject * parent, GstEvent * event)
{
GstSegment segment;
- gst_event_copy_segment (event, &segment);
+ gst_event_segment_copy (event, &segment);
if (segment.format == GST_FORMAT_BYTES) {
GST_PUSH_LOCK (ogg);
@@ -2242,7 +2242,7 @@ gst_ogg_demux_deactivate_current_chain (GstOggDemux * ogg)
if (!pad->added)
continue;
- event = gst_event_new_eos ();
+ event = gst_event_eos_new ();
gst_event_set_seqnum (event, ogg->seqnum);
gst_pad_push_event (GST_PAD_CAST (pad), event);
@@ -2393,7 +2393,7 @@ gst_ogg_demux_activate_chain (GstOggDemux * ogg, GstOggChain * chain,
gst_ogg_demux_send_event (ogg, event);
tags = gst_tag_list_new (GST_TAG_CONTAINER_FORMAT, "Ogg", NULL);
- gst_ogg_demux_send_event (ogg, gst_event_new_tag (tags));
+ gst_ogg_demux_send_event (ogg, gst_event_tag_new (tags));
}
GST_DEBUG_OBJECT (ogg, "starting chain");
@@ -2409,7 +2409,7 @@ gst_ogg_demux_activate_chain (GstOggDemux * ogg, GstOggChain * chain,
if (pad->map.taglist) {
GST_DEBUG_OBJECT (ogg, "pushing tags");
gst_pad_push_event (GST_PAD_CAST (pad),
- gst_event_new_tag (pad->map.taglist));
+ gst_event_tag_new (pad->map.taglist));
pad->map.taglist = NULL;
}
@@ -2822,7 +2822,7 @@ gst_ogg_demux_perform_seek_pull (GstOggDemux * ogg, GstEvent * event)
if (event) {
GST_DEBUG_OBJECT (ogg, "seek with event");
- gst_event_parse_seek (event, &rate, &format, &flags,
+ gst_event_seek_parse (event, &rate, &format, &flags,
&cur_type, &cur, &stop_type, &stop);
/* we can only seek on time */
@@ -2852,7 +2852,7 @@ gst_ogg_demux_perform_seek_pull (GstOggDemux * ogg, GstEvent * event)
if (flush) {
gint i;
- tevent = gst_event_new_flush_start ();
+ tevent = gst_event_flush_start_new ();
gst_event_set_seqnum (tevent, seqnum);
gst_event_ref (tevent);
@@ -2894,7 +2894,7 @@ gst_ogg_demux_perform_seek_pull (GstOggDemux * ogg, GstEvent * event)
/* we need to stop flushing on the srcpad as we're going to use it
* next. We can do this as we have the STREAM lock now. */
if (flush) {
- tevent = gst_event_new_flush_stop (TRUE);
+ tevent = gst_event_flush_stop_new (TRUE);
gst_event_set_seqnum (tevent, seqnum);
gst_pad_push_event (ogg->sinkpad, tevent);
}
@@ -2935,7 +2935,7 @@ gst_ogg_demux_perform_seek_pull (GstOggDemux * ogg, GstEvent * event)
/* we have to send the flush to the old chain, not the new one */
if (flush) {
- tevent = gst_event_new_flush_stop (TRUE);
+ tevent = gst_event_flush_stop_new (TRUE);
gst_event_set_seqnum (tevent, seqnum);
gst_ogg_demux_send_event (ogg, tevent);
}
@@ -2982,7 +2982,7 @@ gst_ogg_demux_perform_seek_pull (GstOggDemux * ogg, GstEvent * event)
segment.start = start;
segment.stop = position;
}
- event = gst_event_new_segment (&segment);
+ event = gst_event_segment_new (&segment);
gst_event_set_seqnum (event, seqnum);
if (chain != ogg->current_chain) {
@@ -3053,7 +3053,7 @@ gst_ogg_demux_get_duration_push (GstOggDemux * ogg, int flags)
"Getting duration, seeking near the end, to %" G_GINT64_FORMAT, position);
ogg->push_state = PUSH_DURATION;
/* do not read the last byte */
- sevent = gst_event_new_seek (1.0, GST_FORMAT_BYTES, flags, GST_SEEK_TYPE_SET,
+ sevent = gst_event_seek_new (1.0, GST_FORMAT_BYTES, flags, GST_SEEK_TYPE_SET,
position, GST_SEEK_TYPE_SET, ogg->push_byte_length - 1);
res = gst_pad_push_event (ogg->sinkpad, sevent);
if (res) {
@@ -3129,7 +3129,7 @@ gst_ogg_demux_perform_seek_push (GstOggDemux * ogg, GstEvent * event)
GST_DEBUG_OBJECT (ogg, "Push mode seek request received");
- 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) {
@@ -3254,7 +3254,7 @@ gst_ogg_demux_perform_seek_push (GstOggDemux * ogg, GstEvent * event)
ogg->push_mode_seek_delayed_event = NULL;
ogg->push_bisection_steps[0] = 1;
ogg->push_bisection_steps[1] = 0;
- sevent = gst_event_new_seek (rate, GST_FORMAT_BYTES, flags,
+ sevent = gst_event_seek_new (rate, GST_FORMAT_BYTES, flags,
start_type, best, GST_SEEK_TYPE_NONE, -1);
GST_PUSH_UNLOCK (ogg);
@@ -3820,7 +3820,7 @@ gst_ogg_demux_handle_page (GstOggDemux * ogg, ogg_page * page)
segment.start = start;
segment.stop = chain->segment_stop;
segment.time = chain->begin_time;
- event = gst_event_new_segment (&segment);
+ event = gst_event_segment_new (&segment);
gst_event_set_seqnum (event, ogg->seqnum);
GST_DEBUG_OBJECT (ogg,
@@ -4258,13 +4258,13 @@ pause:
} else {
/* normal playback, send EOS to all linked pads */
GST_LOG_OBJECT (ogg, "Sending EOS, at end of stream");
- event = gst_event_new_eos ();
+ event = gst_event_eos_new ();
}
} else if (ret == GST_FLOW_NOT_LINKED || ret < GST_FLOW_EOS) {
GST_ELEMENT_ERROR (ogg, STREAM, FAILED,
(_("Internal data stream error.")),
("stream stopped, reason %s", reason));
- event = gst_event_new_eos ();
+ event = gst_event_eos_new ();
}
/* For wrong-state we still want to pause the task and stop
diff --git a/ext/ogg/gstoggmux.c b/ext/ogg/gstoggmux.c
index 283505c6f..470d8541b 100644
--- a/ext/ogg/gstoggmux.c
+++ b/ext/ogg/gstoggmux.c
@@ -317,7 +317,7 @@ gst_ogg_mux_sink_event (GstPad * pad, GstObject * parent, GstEvent * event)
{
const GstSegment *segment;
- gst_event_parse_segment (event, &segment);
+ gst_event_segment_parse (event, &segment);
/* We don't support non time NEWSEGMENT events */
if (segment->format != GST_FORMAT_TIME) {
@@ -336,7 +336,7 @@ gst_ogg_mux_sink_event (GstPad * pad, GstObject * parent, GstEvent * event)
case GST_EVENT_TAG:{
GstTagList *tags;
- gst_event_parse_tag (event, &tags);
+ gst_event_tag_parse (event, &tags);
tags = gst_tag_list_merge (ogg_pad->tags, tags, GST_TAG_MERGE_APPEND);
if (ogg_pad->tags)
gst_tag_list_free (ogg_pad->tags);
@@ -1625,7 +1625,7 @@ gst_ogg_mux_process_best_pad (GstOggMux * ogg_mux, GstOggPadData * best)
GST_TIME_FORMAT, GST_TIME_ARGS (ogg_mux->next_ts));
} else {
/* no pad to pull on, send EOS */
- gst_pad_push_event (ogg_mux->srcpad, gst_event_new_eos ());
+ gst_pad_push_event (ogg_mux->srcpad, gst_event_eos_new ());
return GST_FLOW_WRONG_STATE;
}
}
@@ -1915,7 +1915,7 @@ gst_ogg_mux_collected (GstCollectPads2 * pads, GstOggMux * ogg_mux)
ret = gst_ogg_mux_process_best_pad (ogg_mux, best);
if (best->eos && all_pads_eos (pads)) {
- gst_pad_push_event (ogg_mux->srcpad, gst_event_new_eos ());
+ gst_pad_push_event (ogg_mux->srcpad, gst_event_eos_new ());
return GST_FLOW_EOS;
}
diff --git a/ext/ogg/gstoggparse.c b/ext/ogg/gstoggparse.c
index eb8e0b988..b813520ff 100644
--- a/ext/ogg/gstoggparse.c
+++ b/ext/ogg/gstoggparse.c
@@ -700,7 +700,7 @@ gst_ogg_parse_chain (GstPad * pad, GstObject * parent, GstBuffer * buffer)
return result;
failure:
- gst_pad_push_event (GST_PAD (ogg->srcpad), gst_event_new_eos ());
+ gst_pad_push_event (GST_PAD (ogg->srcpad), gst_event_eos_new ());
return GST_FLOW_ERROR;
}
diff --git a/ext/ogg/gstogmparse.c b/ext/ogg/gstogmparse.c
index 6790937f7..cdfe06e50 100644
--- a/ext/ogg/gstogmparse.c
+++ b/ext/ogg/gstogmparse.c
@@ -657,7 +657,7 @@ gst_ogm_parse_stream_header (GstOgmParse * ogm, const guint8 * data, guint size)
GstTagList *tags;
tags = gst_tag_list_new (GST_TAG_SUBTITLE_CODEC, "Ogm", NULL);
- gst_pad_push_event (ogm->srcpad, gst_event_new_tag (tags));
+ gst_pad_push_event (ogm->srcpad, gst_event_tag_new (tags));
}
}
@@ -699,7 +699,7 @@ gst_ogm_parse_comment_packet (GstOgmParse * ogm, GstBuffer * buf)
if (tags) {
GST_DEBUG_OBJECT (ogm, "tags = %" GST_PTR_FORMAT, tags);
- gst_pad_push_event (ogm->srcpad, gst_event_new_tag (tags));
+ gst_pad_push_event (ogm->srcpad, gst_event_tag_new (tags));
} else {
GST_DEBUG_OBJECT (ogm, "failed to extract tags from vorbis comment");
}
diff --git a/ext/pango/gstbasetextoverlay.c b/ext/pango/gstbasetextoverlay.c
index df036aee2..0bb09c4ad 100644
--- a/ext/pango/gstbasetextoverlay.c
+++ b/ext/pango/gstbasetextoverlay.c
@@ -768,7 +768,7 @@ gst_base_text_overlay_setcaps (GstBaseTextOverlay * overlay, GstCaps * caps)
overlay->width = GST_VIDEO_INFO_WIDTH (&info);
overlay->height = GST_VIDEO_INFO_HEIGHT (&info);
- ret = gst_pad_push_event (overlay->srcpad, gst_event_new_caps (caps));
+ ret = gst_pad_push_event (overlay->srcpad, gst_event_caps_new (caps));
if (ret) {
GST_OBJECT_LOCK (overlay);
@@ -1043,11 +1043,11 @@ gst_base_text_overlay_src_event (GstPad * pad, GstObject * parent,
GST_DEBUG_OBJECT (overlay, "seek received, driving from here");
- gst_event_parse_seek (event, NULL, NULL, &flags, NULL, NULL, NULL, NULL);
+ gst_event_seek_parse (event, NULL, NULL, &flags, NULL, NULL, NULL, NULL);
/* Flush downstream, only for flushing seek */
if (flags & GST_SEEK_FLAG_FLUSH)
- gst_pad_push_event (overlay->srcpad, gst_event_new_flush_start ());
+ gst_pad_push_event (overlay->srcpad, gst_event_flush_start_new ());
/* Mark ourself as flushing, unblock chains */
GST_OBJECT_LOCK (overlay);
@@ -2161,7 +2161,7 @@ gst_base_text_overlay_text_event (GstPad * pad, GstObject * parent,
{
GstCaps *caps;
- gst_event_parse_caps (event, &caps);
+ gst_event_caps_parse (event, &caps);
ret = gst_base_text_overlay_setcaps_txt (overlay, caps);
gst_event_unref (event);
break;
@@ -2172,7 +2172,7 @@ gst_base_text_overlay_text_event (GstPad * pad, GstObject * parent,
overlay->text_eos = FALSE;
- gst_event_parse_segment (event, &segment);
+ gst_event_segment_parse (event, &segment);
if (segment->format == GST_FORMAT_TIME) {
GST_OBJECT_LOCK (overlay);
@@ -2250,7 +2250,7 @@ gst_base_text_overlay_video_event (GstPad * pad, GstObject * parent,
{
GstCaps *caps;
- gst_event_parse_caps (event, &caps);
+ gst_event_caps_parse (event, &caps);
ret = gst_base_text_overlay_setcaps (overlay, caps);
gst_event_unref (event);
break;
@@ -2261,7 +2261,7 @@ gst_base_text_overlay_video_event (GstPad * pad, GstObject * parent,
GST_DEBUG_OBJECT (overlay, "received new segment");
- gst_event_parse_segment (event, &segment);
+ gst_event_segment_parse (event, &segment);
if (segment->format == GST_FORMAT_TIME) {
GST_DEBUG_OBJECT (overlay, "VIDEO SEGMENT now: %" GST_SEGMENT_FORMAT,
diff --git a/ext/pango/gsttextrender.c b/ext/pango/gsttextrender.c
index a2b0b7c17..95d389e90 100644
--- a/ext/pango/gsttextrender.c
+++ b/ext/pango/gsttextrender.c
@@ -371,7 +371,7 @@ gst_text_render_src_setcaps (GstTextRender * render, GstCaps * caps)
gst_text_render_check_argb (render);
- ret = gst_pad_push_event (render->srcpad, gst_event_new_caps (caps));
+ ret = gst_pad_push_event (render->srcpad, gst_event_caps_new (caps));
return ret;
}
diff --git a/ext/theora/gsttheoradec.c b/ext/theora/gsttheoradec.c
index dbdc9925a..be361c2ff 100644
--- a/ext/theora/gsttheoradec.c
+++ b/ext/theora/gsttheoradec.c
@@ -529,7 +529,7 @@ theora_dec_src_event (GstPad * pad, GstObject * parent, GstEvent * event)
gint64 tcur, tstop;
guint32 seqnum;
- gst_event_parse_seek (event, &rate, &format, &flags, &cur_type, &cur,
+ gst_event_seek_parse (event, &rate, &format, &flags, &cur_type, &cur,
&stop_type, &stop);
seqnum = gst_event_get_seqnum (event);
gst_event_unref (event);
@@ -547,7 +547,7 @@ theora_dec_src_event (GstPad * pad, GstObject * parent, GstEvent * event)
goto convert_error;
/* then seek with time on the peer */
- real_seek = gst_event_new_seek (rate, GST_FORMAT_TIME,
+ real_seek = gst_event_seek_new (rate, GST_FORMAT_TIME,
flags, cur_type, tcur, stop_type, tstop);
gst_event_set_seqnum (real_seek, seqnum);
@@ -560,7 +560,7 @@ theora_dec_src_event (GstPad * pad, GstObject * parent, GstEvent * event)
GstClockTimeDiff diff;
GstClockTime timestamp;
- gst_event_parse_qos (event, NULL, &proportion, &diff, &timestamp);
+ gst_event_qos_parse (event, NULL, &proportion, &diff, &timestamp);
/* we cannot randomly skip frame decoding since we don't have
* B frames. we can however use the timestamp and diff to not
@@ -617,7 +617,7 @@ theora_dec_sink_event (GstPad * pad, GstObject * parent, GstEvent * event)
{
const GstSegment *segment;
- gst_event_parse_segment (event, &segment);
+ gst_event_segment_parse (event, &segment);
/* we need TIME format */
if (segment->format != GST_FORMAT_TIME)
@@ -642,7 +642,7 @@ theora_dec_sink_event (GstPad * pad, GstObject * parent, GstEvent * event)
{
GstCaps *caps;
- gst_event_parse_caps (event, &caps);
+ gst_event_caps_parse (event, &caps);
ret = theora_dec_setcaps (dec, caps);
gst_event_unref (event);
break;
@@ -975,7 +975,7 @@ theora_handle_type_packet (GstTheoraDec * dec, ogg_packet * packet)
}
if (dec->tags) {
- gst_pad_push_event (dec->srcpad, gst_event_new_tag (dec->tags));
+ gst_pad_push_event (dec->srcpad, gst_event_tag_new (dec->tags));
dec->tags = NULL;
}
diff --git a/ext/theora/gsttheoraenc.c b/ext/theora/gsttheoraenc.c
index 2797c02bb..4710bee07 100644
--- a/ext/theora/gsttheoraenc.c
+++ b/ext/theora/gsttheoraenc.c
@@ -910,14 +910,14 @@ theora_enc_sink_event (GstPad * pad, GstObject * parent, GstEvent * event)
{
GstCaps *caps;
- gst_event_parse_caps (event, &caps);
+ gst_event_caps_parse (event, &caps);
res = theora_enc_sink_setcaps (enc, caps);
gst_event_unref (event);
break;
}
case GST_EVENT_SEGMENT:
{
- gst_event_copy_segment (event, &enc->segment);
+ gst_event_segment_copy (event, &enc->segment);
res = gst_pad_push_event (enc->srcpad, event);
break;
diff --git a/ext/vorbis/gstvorbisdec.c b/ext/vorbis/gstvorbisdec.c
index 45c840abb..eec14d3a0 100644
--- a/ext/vorbis/gstvorbisdec.c
+++ b/ext/vorbis/gstvorbisdec.c
@@ -186,7 +186,7 @@ vorbis_dec_src_event (GstPad * pad, GstEvent * event)
gint64 tcur, tstop;
guint32 seqnum;
- gst_event_parse_seek (event, &rate, &format, &flags, &cur_type, &cur,
+ gst_event_seek_parse (event, &rate, &format, &flags, &cur_type, &cur,
&stop_type, &stop);
seqnum = gst_event_get_seqnum (event);
gst_event_unref (event);
@@ -199,7 +199,7 @@ vorbis_dec_src_event (GstPad * pad, GstEvent * event)
goto convert_error;
/* then seek with time on the peer */
- real_seek = gst_event_new_seek (rate, GST_FORMAT_TIME,
+ real_seek = gst_event_seek_new (rate, GST_FORMAT_TIME,
flags, cur_type, tcur, stop_type, tstop);
gst_event_set_seqnum (real_seek, seqnum);
@@ -339,7 +339,7 @@ vorbis_handle_comment_packet (GstVorbisDec * vd, ogg_packet * packet)
if (vd->initialized) {
gst_pad_push_event (GST_AUDIO_DECODER_SRC_PAD (vd),
- gst_event_new_tag (vd->taglist));
+ gst_event_tag_new (vd->taglist));
vd->taglist = NULL;
} else {
/* Only post them as messages for the time being. *
@@ -374,7 +374,7 @@ vorbis_handle_type_packet (GstVorbisDec * vd)
if (vd->taglist) {
/* The tags have already been sent on the bus as messages. */
gst_pad_push_event (GST_AUDIO_DECODER_SRC_PAD (vd),
- gst_event_new_tag (vd->taglist));
+ gst_event_tag_new (vd->taglist));
vd->taglist = NULL;
}
return GST_FLOW_OK;
diff --git a/ext/vorbis/gstvorbisenc.c b/ext/vorbis/gstvorbisenc.c
index 5a13ffd9e..2312fad92 100644
--- a/ext/vorbis/gstvorbisenc.c
+++ b/ext/vorbis/gstvorbisenc.c
@@ -596,7 +596,7 @@ gst_vorbis_enc_sink_event (GstAudioEncoder * enc, GstEvent * event)
if (vorbisenc->tags) {
GstTagList *list;
- gst_event_parse_tag (event, &list);
+ gst_event_tag_parse (event, &list);
gst_tag_list_insert (vorbisenc->tags, list,
gst_tag_setter_get_tag_merge_mode (GST_TAG_SETTER (vorbisenc)));
} else {