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:
parent
d8c4ebccab
commit
fd64e8c7ed
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user