adaptivedemux: fix 'utc now' gdatetime creation
authorThiago Santos <thiagossantos@gmail.com>
Wed, 20 Nov 2019 03:29:26 +0000 (19:29 -0800)
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Wed, 20 Nov 2019 22:16:15 +0000 (22:16 +0000)
commit3c5e5f8b85841442a30c10f1be9ed9fc4d326037
tree0a4fbb26bac17f6b1636328e0753e1144890ac7c
parent19391ae4c715cf35112496db90a9b3a6de82e19a
adaptivedemux: fix 'utc now' gdatetime creation

It broke after removal of usage of GTimeVal that was deprecated,
it requires seconds in this unix-based creation instead of microseconds.

The downside here is that it will create an extra object just to be
discarded in order to add the microsecond part to it.

It would end up segfaulting as it would return a NULL value
gst-libs/gst/adaptivedemux/gstadaptivedemux.c