}
static void
+gst_hls_time_map_free (GstHLSTimeMap * map)
+{
+ if (map->pdt)
+ g_date_time_unref (map->pdt);
+ g_free (map);
+}
+
+static void
gst_hls_demux_add_time_mapping (GstHLSDemux * demux, gint64 dsn,
GstClockTimeDiff stream_time, GDateTime * pdt)
{
}
}
- g_list_free_full (hlsdemux->mappings, g_free);
+ g_list_free_full (hlsdemux->mappings, (GDestroyNotify) gst_hls_time_map_free);
hlsdemux->mappings = active;
}
demux->pending_variant = NULL;
}
- g_list_free_full (demux->mappings, g_free);
+ g_list_free_full (demux->mappings, (GDestroyNotify) gst_hls_time_map_free);
demux->mappings = NULL;
gst_hls_demux_clear_all_pending_data (demux);