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;
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;