summaryrefslogtreecommitdiff
path: root/gst/rawparse/gstrawparse.c
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@collabora.co.uk>2011-11-16 02:26:00 +0100
committerWim Taymans <wim.taymans@collabora.co.uk>2011-11-16 03:44:17 +0100
commit6b66057e81295a8f509ecf393ba767ffbf800fb8 (patch)
treeb4fe610982489980b99f28178614d475858775a9 /gst/rawparse/gstrawparse.c
parentc5c67c191318c43374cb6def88663b3f822087df (diff)
rename eventsrenme-events
Diffstat (limited to 'gst/rawparse/gstrawparse.c')
-rw-r--r--gst/rawparse/gstrawparse.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/gst/rawparse/gstrawparse.c b/gst/rawparse/gstrawparse.c
index 59a3093f8..9fecb23ea 100644
--- a/gst/rawparse/gstrawparse.c
+++ b/gst/rawparse/gstrawparse.c
@@ -420,13 +420,13 @@ pause:
rp->segment.format, stop));
} else {
GST_LOG_OBJECT (rp, "Sending EOS, at end of stream");
- gst_pad_push_event (rp->srcpad, gst_event_new_eos ());
+ gst_pad_push_event (rp->srcpad, gst_event_eos_new ());
}
} else if (ret == GST_FLOW_NOT_LINKED || ret < GST_FLOW_UNEXPECTED) {
GST_ELEMENT_ERROR (rp, STREAM, FAILED,
("Internal data stream error."),
("stream stopped, reason %s", reason));
- gst_pad_push_event (rp->srcpad, gst_event_new_eos ());
+ gst_pad_push_event (rp->srcpad, gst_event_eos_new ());
}
return;
}
@@ -683,7 +683,7 @@ gst_raw_parse_handle_seek_push (GstRawParse * rp, GstEvent * event)
gint64 start, stop;
gboolean ret = FALSE;
- gst_event_parse_seek (event, &rate, &format, &flags, &start_type, &start,
+ gst_event_seek_parse (event, &rate, &format, &flags, &start_type, &start,
&stop_type, &stop);
/* can't seek backwards yet */
@@ -707,7 +707,7 @@ gst_raw_parse_handle_seek_push (GstRawParse * rp, GstEvent * event)
stop += rp->framesize - stop % rp->framesize;
event =
- gst_event_new_seek (rate, GST_FORMAT_BYTES, flags, start_type,
+ gst_event_seek_new (rate, GST_FORMAT_BYTES, flags, start_type,
start, stop_type, stop);
ret = gst_pad_push_event (rp->sinkpad, event);
@@ -742,7 +742,7 @@ gst_raw_parse_handle_seek_pull (GstRawParse * rp, GstEvent * event)
GstSegment seeksegment;
if (event) {
- gst_event_parse_seek (event, &rate, &format, &flags, &start_type, &start,
+ gst_event_seek_parse (event, &rate, &format, &flags, &start_type, &start,
&stop_type, &stop);
/* convert input offsets to time */
@@ -767,8 +767,8 @@ gst_raw_parse_handle_seek_pull (GstRawParse * rp, GstEvent * event)
* can acquire the STREAM_LOCK. */
if (flush) {
GST_LOG_OBJECT (rp, "flushing");
- gst_pad_push_event (rp->sinkpad, gst_event_new_flush_start ());
- gst_pad_push_event (rp->srcpad, gst_event_new_flush_start ());
+ gst_pad_push_event (rp->sinkpad, gst_event_flush_start_new ());
+ gst_pad_push_event (rp->srcpad, gst_event_flush_start_new ());
} else {
GST_LOG_OBJECT (rp, "pause task");
gst_pad_pause_task (rp->sinkpad);
@@ -798,8 +798,8 @@ gst_raw_parse_handle_seek_pull (GstRawParse * rp, GstEvent * event)
/* prepare for streaming */
if (flush) {
GST_LOG_OBJECT (rp, "stop flush");
- gst_pad_push_event (rp->sinkpad, gst_event_new_flush_stop ());
- gst_pad_push_event (rp->srcpad, gst_event_new_flush_stop ());
+ gst_pad_push_event (rp->sinkpad, gst_event_flush_stop_new ());
+ gst_pad_push_event (rp->srcpad, gst_event_flush_stop_new ());
} else if (ret && rp->running) {
/* we are running the current segment and doing a non-flushing seek,
* close the segment first based on the last_stop. */