From f6d654aad52997e8f68160b61020b536ae7538e1 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Fri, 28 Mar 2003 17:36:22 +0000 Subject: Remove redundant _clock_set Original commit message from CVS: Remove redundant _clock_set --- gst/gstscheduler.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'gst/gstscheduler.c') diff --git a/gst/gstscheduler.c b/gst/gstscheduler.c index 3521b22a09..fe473b5596 100644 --- a/gst/gstscheduler.c +++ b/gst/gstscheduler.c @@ -320,13 +320,11 @@ gst_scheduler_state_transition (GstScheduler *sched, GstElement *element, gint t GST_DEBUG (GST_CAT_CLOCK, "scheduler PAUSED to PLAYING clock is %p (%s)", clock, (clock ? GST_OBJECT_NAME (clock) : "nil")); - gst_object_replace ((GstObject **)&sched->current_clock, (GstObject *)clock); - - gst_scheduler_set_clock (sched, sched->current_clock); - if (sched->current_clock) { - GST_DEBUG (GST_CAT_CLOCK, "enabling clock %p (%s)", sched->current_clock, - GST_OBJECT_NAME (sched->current_clock)); - gst_clock_set_active (sched->current_clock, TRUE); + gst_scheduler_set_clock (sched, clock); + if (clock) { + GST_DEBUG (GST_CAT_CLOCK, "enabling clock %p (%s)", clock, + GST_OBJECT_NAME (clock)); + gst_clock_set_active (clock, TRUE); } break; } -- cgit v1.2.1