diff options
author | Edward Hervey <edward@centricular.com> | 2019-10-11 14:20:15 +0200 |
---|---|---|
committer | Sebastian Dröge <slomo@coaxion.net> | 2019-10-16 07:46:58 +0000 |
commit | 8e1c224fbc217d43f5b34cf63b3883c871dcecf2 (patch) | |
tree | 6bba450d976c7992686cfdcd9e79639b9d349128 /gst/matroska/matroska-mux.c | |
parent | 3f21c89bb02a19ac96f271ede26dcbe54cda657f (diff) |
good: Avoid usage of deprecated API
GTimeval and related functions are now deprecated in glib.
Replacement APIs have been present since 2.26
Diffstat (limited to 'gst/matroska/matroska-mux.c')
-rw-r--r-- | gst/matroska/matroska-mux.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gst/matroska/matroska-mux.c b/gst/matroska/matroska-mux.c index 1a5d5ca1b..e02cb3952 100644 --- a/gst/matroska/matroska-mux.c +++ b/gst/matroska/matroska-mux.c @@ -2960,7 +2960,6 @@ gst_matroska_mux_start (GstMatroskaMux * mux, GstMatroskaPad * first_pad, GstClockTime earliest_time = GST_CLOCK_TIME_NONE; GstClockTime duration = 0; guint32 segment_uid[4]; - GTimeVal time = { 0, 0 }; gchar s_id[32]; GstToc *toc; @@ -3098,8 +3097,8 @@ gst_matroska_mux_start (GstMatroskaMux * mux, GstMatroskaPad * first_pad, if (mux->writing_app && mux->writing_app[0]) { gst_ebml_write_utf8 (ebml, GST_MATROSKA_ID_WRITINGAPP, mux->writing_app); } - g_get_current_time (&time); - gst_ebml_write_date (ebml, GST_MATROSKA_ID_DATEUTC, time.tv_sec); + gst_ebml_write_date (ebml, GST_MATROSKA_ID_DATEUTC, + g_get_real_time () / G_USEC_PER_SEC); gst_ebml_write_master_finish (ebml, master); /* tracks */ |