summaryrefslogtreecommitdiffstats
path: root/sys/cdrom/gstcdplayer.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/cdrom/gstcdplayer.c')
-rw-r--r--sys/cdrom/gstcdplayer.c13
1 files changed, 2 insertions, 11 deletions
diff --git a/sys/cdrom/gstcdplayer.c b/sys/cdrom/gstcdplayer.c
index ddfc823f..2bbbddb2 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;