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