From: Wim Taymans Date: Fri, 28 Mar 2003 17:36:22 +0000 (+0000) Subject: Remove redundant _clock_set X-Git-Tag: BRANCH-ERROR-ROOT~353 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f6d654aad52997e8f68160b61020b536ae7538e1;p=platform%2Fupstream%2Fgstreamer.git Remove redundant _clock_set Original commit message from CVS: Remove redundant _clock_set --- diff --git a/gst/gstscheduler.c b/gst/gstscheduler.c index 3521b22..fe473b5 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; }