From bae4e2ad4a6334aecaaa68f22f1ac1c00e05c34d Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Mon, 18 Jul 2005 15:40:36 +0000 Subject: gst/rtsp/gstrtspsrc.c: Fix for core changes. Original commit message from CVS: * gst/rtsp/gstrtspsrc.c: (gst_rtspsrc_add_element), (gst_rtspsrc_play): Fix for core changes. --- gst/rtsp/gstrtspsrc.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'gst') diff --git a/gst/rtsp/gstrtspsrc.c b/gst/rtsp/gstrtspsrc.c index a522e357..fea449fe 100644 --- a/gst/rtsp/gstrtspsrc.c +++ b/gst/rtsp/gstrtspsrc.c @@ -244,8 +244,6 @@ static gboolean gst_rtspsrc_add_element (GstRTSPSrc * src, GstElement * element) { gst_object_set_parent (GST_OBJECT (element), GST_OBJECT (src)); - gst_element_set_manager (element, GST_ELEMENT_MANAGER (src)); - gst_element_set_scheduler (element, GST_ELEMENT_SCHEDULER (src)); return TRUE; } @@ -795,10 +793,8 @@ gst_rtspsrc_play (GstRTSPSrc * src) if (!gst_rtspsrc_send (src, &request, &response)) goto send_error; - if (GST_ELEMENT_SCHEDULER (src) && src->interleaved) { - src->task = - gst_scheduler_create_task (GST_ELEMENT_SCHEDULER (src), - (GstTaskFunction) gst_rtspsrc_loop, src); + if (src->interleaved) { + src->task = gst_task_create ((GstTaskFunction) gst_rtspsrc_loop, src); gst_task_start (src->task); } -- cgit