Commit a3fdb45a authored by Wim Taymans's avatar Wim Taymans
Browse files

basesink: add some more debugging

parent 494495ea
......@@ -1972,6 +1972,7 @@ gst_base_sink_wait_clock (GstBaseSink * sink, GstClockTime time,
GstClockID id;
GstClockReturn ret;
GstClock *clock;
GstClockTime base_time;
goto invalid_time;
......@@ -1983,8 +1984,13 @@ gst_base_sink_wait_clock (GstBaseSink * sink, GstClockTime time,
if (G_UNLIKELY ((clock = GST_ELEMENT_CLOCK (sink)) == NULL))
goto no_clock;
base_time = GST_ELEMENT_CAST (sink)->base_time;
"time %" GST_TIME_FORMAT ", base_time %" GST_TIME_FORMAT,
GST_TIME_ARGS (time), GST_TIME_ARGS (base_time));
/* add base_time to running_time to get the time against the clock */
time += GST_ELEMENT_CAST (sink)->base_time;
time += base_time;
id = gst_clock_new_single_shot_id (clock, time);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment