From dbed726057d3b2488c5d514ce14174fdc2dec6a4 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Wed, 20 Jun 2012 10:34:48 +0200 Subject: update for task api change --- ext/timidity/gsttimidity.c | 5 +++-- ext/timidity/gstwildmidi.c | 7 ++++--- 2 files changed, 7 insertions(+), 5 deletions(-) (limited to 'ext/timidity') diff --git a/ext/timidity/gsttimidity.c b/ext/timidity/gsttimidity.c index 1857d53b7..89e592ecf 100644 --- a/ext/timidity/gsttimidity.c +++ b/ext/timidity/gsttimidity.c @@ -423,7 +423,7 @@ gst_timidity_src_event (GstPad * pad, GstEvent * event) timidity->o_seek = TRUE; gst_pad_start_task (timidity->sinkpad, - (GstTaskFunction) gst_timidity_loop, timidity->sinkpad); + (GstTaskFunction) gst_timidity_loop, timidity->sinkpad, NULL); GST_PAD_STREAM_UNLOCK (timidity->sinkpad); GST_DEBUG ("seek done"); @@ -451,7 +451,8 @@ static gboolean gst_timidity_activatepull (GstPad * pad, gboolean active) { if (active) { - return gst_pad_start_task (pad, (GstTaskFunction) gst_timidity_loop, pad); + return gst_pad_start_task (pad, (GstTaskFunction) gst_timidity_loop, pad, + NULL); } else { return gst_pad_stop_task (pad); } diff --git a/ext/timidity/gstwildmidi.c b/ext/timidity/gstwildmidi.c index a37264c21..260624594 100644 --- a/ext/timidity/gstwildmidi.c +++ b/ext/timidity/gstwildmidi.c @@ -524,7 +524,7 @@ gst_wildmidi_do_seek (GstWildmidi * wildmidi, GstEvent * event) gst_wildmidi_get_new_segment_event (wildmidi, GST_FORMAT_TIME)); gst_pad_start_task (wildmidi->sinkpad, - (GstTaskFunction) gst_wildmidi_loop, wildmidi->sinkpad); + (GstTaskFunction) gst_wildmidi_loop, wildmidi->sinkpad, NULL); wildmidi->discont = TRUE; GST_PAD_STREAM_UNLOCK (wildmidi->sinkpad); @@ -567,7 +567,8 @@ static gboolean gst_wildmidi_activatepull (GstPad * pad, gboolean active) { if (active) { - return gst_pad_start_task (pad, (GstTaskFunction) gst_wildmidi_loop, pad); + return gst_pad_start_task (pad, (GstTaskFunction) gst_wildmidi_loop, pad, + NULL); } else { return gst_pad_stop_task (pad); } @@ -777,7 +778,7 @@ gst_wildmidi_sink_event (GstPad * pad, GstEvent * event) wildmidi->state = GST_WILDMIDI_STATE_PARSE; /* now start the parsing task */ gst_pad_start_task (wildmidi->sinkpad, - (GstTaskFunction) gst_wildmidi_loop, wildmidi->sinkpad); + (GstTaskFunction) gst_wildmidi_loop, wildmidi->sinkpad, NULL); /* don't forward the event */ gst_event_unref (event); break; -- cgit v1.2.1