summaryrefslogtreecommitdiff
path: root/ext/timidity/gsttimidity.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/timidity/gsttimidity.c')
-rw-r--r--ext/timidity/gsttimidity.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/ext/timidity/gsttimidity.c b/ext/timidity/gsttimidity.c
index cbbcc0da1..dfa157597 100644
--- a/ext/timidity/gsttimidity.c
+++ b/ext/timidity/gsttimidity.c
@@ -380,7 +380,7 @@ gst_timidity_src_event (GstPad * pad, GstEvent * event)
if (!timidity->song)
break;
- gst_event_parse_seek (event, &rate, &src_format, &flags,
+ gst_event_seek_parse (event, &rate, &src_format, &flags,
&start_type, &orig_start, &stop_type, &stop);
dst_format = GST_FORMAT_DEFAULT;
@@ -393,7 +393,7 @@ gst_timidity_src_event (GstPad * pad, GstEvent * event)
if (flush) {
GST_DEBUG ("performing flush");
- gst_pad_push_event (timidity->srcpad, gst_event_new_flush_start ());
+ gst_pad_push_event (timidity->srcpad, gst_event_flush_start_new ());
} else {
gst_pad_stop_task (timidity->sinkpad);
}
@@ -401,7 +401,7 @@ gst_timidity_src_event (GstPad * pad, GstEvent * event)
GST_PAD_STREAM_LOCK (timidity->sinkpad);
if (flush) {
- gst_pad_push_event (timidity->srcpad, gst_event_new_flush_stop ());
+ gst_pad_push_event (timidity->srcpad, gst_event_flush_stop_new ());
}
gst_segment_set_seek (timidity->o_segment, rate, dst_format, flags,
@@ -698,7 +698,7 @@ gst_timidity_loop (GstPad * sinkpad)
out = gst_timidity_get_buffer (timidity);
if (!out) {
GST_LOG_OBJECT (timidity, "Song ended, generating eos");
- gst_pad_push_event (timidity->srcpad, gst_event_new_eos ());
+ gst_pad_push_event (timidity->srcpad, gst_event_eos_new ());
timidity->o_seek = FALSE;
goto paused;
}
@@ -726,7 +726,7 @@ paused:
}
eos:
{
- gst_pad_push_event (timidity->srcpad, gst_event_new_eos ());
+ gst_pad_push_event (timidity->srcpad, gst_event_eos_new ());
goto paused;
}
error:
@@ -734,7 +734,7 @@ error:
GST_ELEMENT_ERROR (timidity, STREAM, FAILED,
("Internal data stream error"),
("Streaming stopped, reason %s", gst_flow_get_name (ret)));
- gst_pad_push_event (timidity->srcpad, gst_event_new_eos ());
+ gst_pad_push_event (timidity->srcpad, gst_event_eos_new ());
goto paused;
}
}