Print captured timecodes to the debug log

This commit is contained in:
Sebastian Dröge 2021-08-20 13:44:47 +03:00
parent 0b3c585bea
commit e3e1d09469

View file

@ -1438,6 +1438,13 @@ static GstFlowReturn gst_aja_src_create(GstPushSrc *psrc, GstBuffer **buffer) {
(GstVideoTimeCodeFlags)(flags | GST_VIDEO_TIME_CODE_FLAGS_INTERLACED);
CRP188 rp188(item.tc, tc_format);
{
std::stringstream os;
os << rp188;
GST_DEBUG_OBJECT(self, "Adding timecode %s", os.str().c_str());
}
guint hours, minutes, seconds, frames;
rp188.GetRP188Hrs(hours);
rp188.GetRP188Mins(minutes);