summaryrefslogtreecommitdiff
path: root/gst/subparse/gstsubparse.c
diff options
context:
space:
mode:
Diffstat (limited to 'gst/subparse/gstsubparse.c')
-rw-r--r--gst/subparse/gstsubparse.c10
1 files changed, 5 insertions, 5 deletions
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));