update for new task api
authorWim Taymans <wim.taymans@collabora.co.uk>
Sat, 29 Oct 2011 07:29:27 +0000 (09:29 +0200)
committerWim Taymans <wim.taymans@collabora.co.uk>
Wed, 2 Nov 2011 08:06:37 +0000 (09:06 +0100)
gst/isomp4/gstqtmoovrecover.c
gst/rtsp/gstrtspsrc.c

index b54eee8..678ab3b 100644 (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;
index d31a186..0615733 100644 (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;