update for new task api

This commit is contained in:
Wim Taymans 2011-10-29 09:29:27 +02:00
parent 9a8a8e72c8
commit 0560ab53c0
2 changed files with 2 additions and 2 deletions

View file

@ -343,7 +343,7 @@ gst_qt_moov_recover_change_state (GstElement * element,
switch (transition) {
case GST_STATE_CHANGE_NULL_TO_READY:
qtmr->task = gst_task_create (gst_qt_moov_recover_run, qtmr);
qtmr->task = gst_task_new (gst_qt_moov_recover_run, qtmr);
g_static_rec_mutex_init (&qtmr->task_mutex);
gst_task_set_lock (qtmr->task, &qtmr->task_mutex);
break;

View file

@ -6510,7 +6510,7 @@ gst_rtspsrc_start (GstRTSPSrc * src)
src->loop_cmd = CMD_WAIT;
if (src->task == NULL) {
src->task = gst_task_create ((GstTaskFunction) gst_rtspsrc_thread, src);
src->task = gst_task_new ((GstTaskFunction) gst_rtspsrc_thread, src);
if (src->task == NULL)
goto task_error;