Tim-Philipp Müller 2023-01-04 17:57:05 +00:00 committed by GStreamer Marge Bot
parent 2c2767b94a
commit 6bdef53683

View file

@ -191,7 +191,7 @@ free_reported_latency (gpointer data)
static void static void
free_element_stats (gpointer data) free_element_stats (gpointer data)
{ {
g_slice_free (GstElementStats, data); g_free (data);
} }
static inline GstElementStats * static inline GstElementStats *
@ -211,7 +211,7 @@ get_pad_stats (guint ix)
static void static void
free_pad_stats (gpointer data) free_pad_stats (gpointer data)
{ {
g_slice_free (GstPadStats, data); g_free (data);
} }
static inline GstThreadStats * static inline GstThreadStats *
@ -220,7 +220,7 @@ get_thread_stats (gpointer id)
GstThreadStats *stats = g_hash_table_lookup (threads, id); GstThreadStats *stats = g_hash_table_lookup (threads, id);
if (G_UNLIKELY (!stats)) { if (G_UNLIKELY (!stats)) {
stats = g_slice_new0 (GstThreadStats); stats = g_new0 (GstThreadStats, 1);
stats->tthread = GST_CLOCK_TIME_NONE; stats->tthread = GST_CLOCK_TIME_NONE;
g_hash_table_insert (threads, id, stats); g_hash_table_insert (threads, id, stats);
} }
@ -246,7 +246,7 @@ new_pad_stats (GstStructure * s)
"pad-direction", GST_TYPE_PAD_DIRECTION, &dir, "pad-direction", GST_TYPE_PAD_DIRECTION, &dir,
"thread-id", G_TYPE_UINT64, &thread_id, NULL); "thread-id", G_TYPE_UINT64, &thread_id, NULL);
stats = g_slice_new0 (GstPadStats); stats = g_new0 (GstPadStats, 1);
if (is_ghost_pad) if (is_ghost_pad)
num_ghostpads++; num_ghostpads++;
num_pads++; num_pads++;
@ -279,7 +279,7 @@ new_element_stats (GstStructure * s)
"name", G_TYPE_STRING, &name, "name", G_TYPE_STRING, &name,
"type", G_TYPE_STRING, &type, "is-bin", G_TYPE_BOOLEAN, &is_bin, NULL); "type", G_TYPE_STRING, &type, "is-bin", G_TYPE_BOOLEAN, &is_bin, NULL);
stats = g_slice_new0 (GstElementStats); stats = g_new0 (GstElementStats, 1);
if (is_bin) if (is_bin)
num_bins++; num_bins++;
num_elements++; num_elements++;
@ -298,7 +298,7 @@ new_element_stats (GstStructure * s)
static void static void
free_thread_stats (gpointer data) free_thread_stats (gpointer data)
{ {
g_slice_free (GstThreadStats, data); g_free (data);
} }
static GstPluginStats * static GstPluginStats *