adaptivedemux2: Fix uninitialised memory usage in debug

Fix printing uninitialised memory by clearing the
GstAdaptiveDemuxClock structure when allocating.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2873>
This commit is contained in:
Jan Schmidt 2022-08-11 01:01:07 +10:00 committed by GStreamer Marge Bot
parent d8c4ebccab
commit fd64e8c7ed

View file

@ -59,7 +59,7 @@ struct _GstAdaptiveDemuxLoop
GstAdaptiveDemuxClock *
gst_adaptive_demux_clock_new (void)
{
GstAdaptiveDemuxClock *clock = g_slice_new (GstAdaptiveDemuxClock);
GstAdaptiveDemuxClock *clock = g_slice_new0 (GstAdaptiveDemuxClock);
GstClockType clock_type = GST_CLOCK_TYPE_OTHER;
GObjectClass *gobject_class;