mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 10:11:08 +00:00
Remove redundant _clock_set
Original commit message from CVS: Remove redundant _clock_set
This commit is contained in:
parent
63db8dfb67
commit
f6d654aad5
1 changed files with 5 additions and 7 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue