From ad95a4c05fefaf3d6f6022e4bf63b041b3f9efe1 Mon Sep 17 00:00:00 2001 From: Taeho Oh Date: Wed, 27 Jul 2016 10:58:10 +0900 Subject: [PATCH] Use g_get_real_time() in m3u filename generation. g_get_monotonic_time() resets after reboot in some platforms. Use g_get_real_time() instead of g_get_monotonic_time() to avoid m3u filename collision. --- omvs_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/omvs_main.c b/omvs_main.c index 1683777..6f99335 100644 --- a/omvs_main.c +++ b/omvs_main.c @@ -665,7 +665,7 @@ int main(int argc, char *argv[]) { omvs_gst_plugin_register(); g_mkdir(_omvs_outdir, 0755); - time = g_get_monotonic_time(); + time = g_get_real_time(); m3u_path = g_strdup_printf("%s/omvs_%" G_GUINT64_FORMAT ".m3u", _omvs_outdir, time); if (!_omvs_quiet) {