flvmux: fix writing of creation time
authorTim-Philipp Müller <tim@centricular.com>
Wed, 21 Oct 2015 10:16:01 +0000 (11:16 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Wed, 21 Oct 2015 10:16:01 +0000 (11:16 +0100)
Don't write time as e.g. 11:9:42

gst/flv/gstflvmux.c

index 3465249..b7c0b51 100644 (file)
@@ -977,7 +977,7 @@ tags:
     secs = tv.tv_sec;
     tm = gmtime (&secs);
 
-    s = g_strdup_printf ("%s %s %d %d:%d:%d %d", weekdays[tm->tm_wday],
+    s = g_strdup_printf ("%s %s %d %02d:%02d:%02d %d", weekdays[tm->tm_wday],
         months[tm->tm_mon], tm->tm_mday, tm->tm_hour, tm->tm_min, tm->tm_sec,
         tm->tm_year + 1900);