diff options
author | Wim Taymans <wim.taymans@collabora.co.uk> | 2009-12-11 16:19:18 +0100 |
---|---|---|
committer | Wim Taymans <wim.taymans@collabora.co.uk> | 2009-12-11 16:19:18 +0100 |
commit | a3fdb45aa69f3df991b19f7101009af717bc13a8 (patch) | |
tree | 6faed124c1dda7a3d8b0df9836f7ad31d104b914 /libs | |
parent | 494495eae6a7892397deace4557d668f742f5822 (diff) |
basesink: add some more debugging
Diffstat (limited to 'libs')
-rw-r--r-- | libs/gst/base/gstbasesink.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/libs/gst/base/gstbasesink.c b/libs/gst/base/gstbasesink.c index f9fcb56d6..14b40215f 100644 --- a/libs/gst/base/gstbasesink.c +++ b/libs/gst/base/gstbasesink.c @@ -1972,6 +1972,7 @@ gst_base_sink_wait_clock (GstBaseSink * sink, GstClockTime time, GstClockID id; GstClockReturn ret; GstClock *clock; + GstClockTime base_time; if (G_UNLIKELY (!GST_CLOCK_TIME_IS_VALID (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; + GST_LOG_OBJECT (sink, + "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); GST_OBJECT_UNLOCK (sink); |