From f0a3e054beceb5385e0a9a50ee97719cf51aa1dd Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Sun, 28 Jul 2002 01:48:38 +0000 Subject: [PATCH] - Remove the dummy scheduler hack Original commit message from CVS: - Remove the dummy scheduler hack - Remove the state change hack --- sys/cdrom/gstcdplayer.c | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/sys/cdrom/gstcdplayer.c b/sys/cdrom/gstcdplayer.c index ddfc823f8b..2bbbddb250 100644 --- a/sys/cdrom/gstcdplayer.c +++ b/sys/cdrom/gstcdplayer.c @@ -109,21 +109,15 @@ static void cdplayer_class_init(CDPlayerClass *klass) static void cdplayer_init(CDPlayer *cdp) { - GstScheduler *scheduler; - cdp->device = g_strdup("/dev/cdrom"); cdp->num_tracks = -1; cdp->start_track = 1; cdp->paused = FALSE; + GST_FLAG_SET(cdp,GST_BIN_FLAG_MANAGER); GST_FLAG_SET(cdp,GST_BIN_SELF_SCHEDULABLE); - scheduler = gst_scheduler_factory_make(NULL,GST_ELEMENT(cdp)); - g_return_if_fail(scheduler != NULL); - - gst_scheduler_setup(scheduler); - return; } @@ -257,11 +251,8 @@ static GstElementStateReturn cdplayer_change_state(GstElement *element) break; } - GST_STATE(element) = GST_STATE_PENDING(element); - GST_STATE_PENDING(element) = GST_STATE_VOID_PENDING; - if (GST_ELEMENT_CLASS(parent_class)->change_state) { - return GST_ELEMENT_CLASS(parent_class)->change_state(element); + GST_ELEMENT_CLASS(parent_class)->change_state(element); } return GST_STATE_SUCCESS;