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.
This commit is contained in:
Taeho Oh 2016-07-27 10:58:10 +09:00 committed by Taeho Oh
parent 20fcf95852
commit ad95a4c05f

View File

@ -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) {