update for task api change

This commit is contained in:
Wim Taymans 2012-06-20 10:39:37 +02:00
parent e956902511
commit d90fd7a250
5 changed files with 8 additions and 8 deletions

View file

@ -453,7 +453,7 @@ start_play_tune (GstSidDec * siddec)
gst_event_new_segment (&segment)); gst_event_new_segment (&segment));
res = gst_pad_start_task (siddec->srcpad, res = gst_pad_start_task (siddec->srcpad,
(GstTaskFunction) play_loop, siddec->srcpad); (GstTaskFunction) play_loop, siddec->srcpad, NULL);
return res; return res;
/* ERRORS */ /* ERRORS */

View file

@ -337,7 +337,7 @@ gst_asf_demux_activate_mode (GstPad * sinkpad, GstObject * parent,
demux->streaming = FALSE; demux->streaming = FALSE;
res = gst_pad_start_task (sinkpad, (GstTaskFunction) gst_asf_demux_loop, res = gst_pad_start_task (sinkpad, (GstTaskFunction) gst_asf_demux_loop,
demux); demux, NULL);
} else { } else {
res = gst_pad_stop_task (sinkpad); res = gst_pad_stop_task (sinkpad);
} }
@ -763,7 +763,7 @@ gst_asf_demux_handle_seek_event (GstASFDemux * demux, GstEvent * event)
skip: skip:
/* restart our task since it might have been stopped when we did the flush */ /* restart our task since it might have been stopped when we did the flush */
gst_pad_start_task (demux->sinkpad, (GstTaskFunction) gst_asf_demux_loop, gst_pad_start_task (demux->sinkpad, (GstTaskFunction) gst_asf_demux_loop,
demux); demux, NULL);
/* streaming can continue now */ /* streaming can continue now */
GST_PAD_STREAM_UNLOCK (demux->sinkpad); GST_PAD_STREAM_UNLOCK (demux->sinkpad);

View file

@ -224,7 +224,7 @@ gst_real_audio_demux_sink_activate_mode (GstPad * sinkpad, GstObject * parent,
demux->seekable = TRUE; demux->seekable = TRUE;
res = gst_pad_start_task (sinkpad, res = gst_pad_start_task (sinkpad,
(GstTaskFunction) gst_real_audio_demux_loop, demux); (GstTaskFunction) gst_real_audio_demux_loop, demux, NULL);
} else { } else {
demux->seekable = FALSE; demux->seekable = FALSE;
res = gst_pad_stop_task (sinkpad); res = gst_pad_stop_task (sinkpad);
@ -808,7 +808,7 @@ gst_real_audio_demux_handle_seek (GstRealAudioDemux * demux, GstEvent * event)
demux->segment_running = TRUE; demux->segment_running = TRUE;
/* restart our task since it might have been stopped when we did the flush */ /* restart our task since it might have been stopped when we did the flush */
gst_pad_start_task (demux->sinkpad, gst_pad_start_task (demux->sinkpad,
(GstTaskFunction) gst_real_audio_demux_loop, demux); (GstTaskFunction) gst_real_audio_demux_loop, demux, NULL);
/* streaming can continue now */ /* streaming can continue now */
GST_PAD_STREAM_UNLOCK (demux->sinkpad); GST_PAD_STREAM_UNLOCK (demux->sinkpad);

View file

@ -588,7 +588,7 @@ gst_rdt_manager_src_activate_mode (GstPad * pad, GstObject * parent,
GST_DEBUG_OBJECT (rdtmanager, "Starting task on srcpad"); GST_DEBUG_OBJECT (rdtmanager, "Starting task on srcpad");
result = result =
gst_pad_start_task (pad, (GstTaskFunction) gst_rdt_manager_loop, gst_pad_start_task (pad, (GstTaskFunction) gst_rdt_manager_loop,
pad); pad, NULL);
} else { } else {
/* make sure all data processing stops ASAP */ /* make sure all data processing stops ASAP */
JBUF_LOCK (session); JBUF_LOCK (session);

View file

@ -585,7 +585,7 @@ gst_rmdemux_perform_seek (GstRMDemux * rmdemux, GstEvent * event)
/* restart our task since it might have been stopped when we did the /* restart our task since it might have been stopped when we did the
* flush. */ * flush. */
gst_pad_start_task (rmdemux->sinkpad, (GstTaskFunction) gst_rmdemux_loop, gst_pad_start_task (rmdemux->sinkpad, (GstTaskFunction) gst_rmdemux_loop,
rmdemux->sinkpad); rmdemux->sinkpad, NULL);
} }
done: done:
@ -791,7 +791,7 @@ gst_rmdemux_sink_activate_mode (GstPad * sinkpad, GstObject * parent,
demux->data_offset = G_MAXUINT; demux->data_offset = G_MAXUINT;
res = res =
gst_pad_start_task (sinkpad, (GstTaskFunction) gst_rmdemux_loop, gst_pad_start_task (sinkpad, (GstTaskFunction) gst_rmdemux_loop,
sinkpad); sinkpad, NULL);
} else { } else {
res = gst_pad_stop_task (sinkpad); res = gst_pad_stop_task (sinkpad);
} }