mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-07 20:31:20 +00:00
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
1 changed files with 1 additions and 1 deletions
|
@ -59,7 +59,7 @@ struct _GstAdaptiveDemuxLoop
|
||||||
GstAdaptiveDemuxClock *
|
GstAdaptiveDemuxClock *
|
||||||
gst_adaptive_demux_clock_new (void)
|
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;
|
GstClockType clock_type = GST_CLOCK_TYPE_OTHER;
|
||||||
GObjectClass *gobject_class;
|
GObjectClass *gobject_class;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue