update for new task api
This commit is contained in:
parent
9a8a8e72c8
commit
0560ab53c0
@ -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;
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user