]> git.sesse.net Git - nageru/commitdiff
Include the Nageru version in the timecode display.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Fri, 4 Aug 2023 19:59:50 +0000 (21:59 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Fri, 4 Aug 2023 19:59:50 +0000 (21:59 +0200)
nageru/timecode_renderer.cpp

index 7c9db2d7e38a6bdd9c98dcb2130317cfa74ff53c..7f72d41f1c3817595dc7c62d225a7a0da279b192 100644 (file)
@@ -94,7 +94,7 @@ string TimecodeRenderer::get_timecode_text(double pts, unsigned frame_num)
        unsigned stream_time_hour = stream_time / 60;
 
        char timecode_text[512];
-       snprintf(timecode_text, sizeof(timecode_text), "Nageru - %s.%03u UTC - Stream time %02u:%02u:%02u.%03u (frame %u)",
+       snprintf(timecode_text, sizeof(timecode_text), "Nageru " NAGERU_VERSION " - %s.%03u UTC - Stream time %02u:%02u:%02u.%03u (frame %u)",
                clock_text, msecs, stream_time_hour, stream_time_min, stream_time_sec, stream_time_ms, frame_num);
        return timecode_text;
 }