summaryrefslogtreecommitdiff
path: root/gst/timecode/gsttimecodestamper.c
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2020-01-13 12:54:35 +0200
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>2020-01-13 18:17:23 +0000
commitfdca7ebb4c23a0228752e109a5dda4f7f5b192bc (patch)
treef7f004cb2d499fe09760d178339cf1df2484a279 /gst/timecode/gsttimecodestamper.c
parent96f0f4b6136785cf111a0e3cdd65c10968b916ae (diff)
downloadgstreamer-plugins-bad-fdca7ebb4c23a0228752e109a5dda4f7f5b192bc.tar.gz
timecodestamper: Add some more debug output
Diffstat (limited to 'gst/timecode/gsttimecodestamper.c')
-rw-r--r--gst/timecode/gsttimecodestamper.c18
1 files changed, 16 insertions, 2 deletions
diff --git a/gst/timecode/gsttimecodestamper.c b/gst/timecode/gsttimecodestamper.c
index 93281163c..c6503ad7c 100644
--- a/gst/timecode/gsttimecodestamper.c
+++ b/gst/timecode/gsttimecodestamper.c
@@ -981,6 +981,9 @@ gst_timecodestamper_update_latency (GstTimeCodeStamper * timecodestamper,
/* If we're not live, consider a latency of 0 */
if (!*live)
*latency = 0;
+ GST_DEBUG_OBJECT (pad,
+ "Queried latency: live %d, min latency %" GST_TIME_FORMAT, *live,
+ GST_TIME_ARGS (*latency));
g_mutex_unlock (&timecodestamper->mutex);
}
#endif
@@ -1249,8 +1252,19 @@ gst_timecodestamper_transform_ip (GstBaseTransform * vfilter,
}
GST_TRACE_OBJECT (timecodestamper,
- "Waiting for clock to reach %" GST_TIME_FORMAT,
- GST_TIME_ARGS (wait_time));
+ "Waiting for clock to reach %" GST_TIME_FORMAT
+ " (base time %" GST_TIME_FORMAT
+ " + running time %" GST_TIME_FORMAT
+ " + latency %" GST_TIME_FORMAT
+ "), now %" GST_TIME_FORMAT,
+ GST_TIME_ARGS (wait_time),
+ GST_TIME_ARGS (base_time),
+ GST_TIME_ARGS (running_time),
+ GST_TIME_ARGS (timecodestamper->latency ==
+ GST_CLOCK_TIME_NONE ? 8 *
+ frame_duration : timecodestamper->latency),
+ GST_TIME_ARGS (gst_clock_get_time (clock))
+ );
clock_id = gst_clock_new_single_shot_id (clock, wait_time);
timecodestamper->video_clock_id = clock_id;