timecodestamper: Use the internal LTC timecode tracker instead of the last one we retrieved

Otherwise we don't interpolate between LTC timecodes but only ever put
an LTC timecode on buffers once we actually received one.
This commit is contained in:
Sebastian Dröge 2020-01-09 15:16:02 +02:00
parent 6d6e897762
commit 31d7862051

View file

@ -1404,8 +1404,8 @@ gst_timecodestamper_transform_ip (GstBaseTransform * vfilter,
break;
case GST_TIME_CODE_STAMPER_SOURCE_LTC:
#if HAVE_LTC
if (timecodestamper->ltc_current_tc)
tc = timecodestamper->ltc_current_tc;
if (timecodestamper->ltc_internal_tc)
tc = timecodestamper->ltc_internal_tc;
#endif
if (!tc) {
tc = gst_video_time_code_new (timecodestamper->vinfo.fps_n,