static void gst_hls_sink_finalize (GObject * object) { GstHlsSink *sink = GST_HLS_SINK_CAST (object); g_free (sink->location); g_free (sink->playlist_location); g_free (sink->playlist_root); if (sink->playlist) gst_m3u8_playlist_free (sink->playlist); G_OBJECT_CLASS (parent_class)->finalize ((GObject *) sink); }
static void gst_hls_sink2_reset (GstHlsSink2 * sink) { sink->index = 0; if (sink->playlist) gst_m3u8_playlist_free (sink->playlist); sink->playlist = gst_m3u8_playlist_new (GST_M3U8_PLAYLIST_VERSION, sink->playlist_length, FALSE); g_queue_foreach (&sink->old_locations, (GFunc) g_free, NULL); g_queue_clear (&sink->old_locations); }
static void gst_hls_sink_reset (GstHlsSink * sink) { sink->index = 0; sink->count = 0; sink->timeout_id = 0; sink->last_running_time = 0; sink->waiting_fku = FALSE; gst_event_replace (&sink->force_key_unit_event, NULL); gst_segment_init (&sink->segment, GST_FORMAT_UNDEFINED); if (sink->playlist) gst_m3u8_playlist_free (sink->playlist); sink->playlist = gst_m3u8_playlist_new (6, sink->playlist_length, FALSE); }
static void gst_hls_sink2_finalize (GObject * object) { GstHlsSink2 *sink = GST_HLS_SINK2_CAST (object); g_free (sink->location); g_free (sink->playlist_location); g_free (sink->playlist_root); g_free (sink->current_location); if (sink->playlist) gst_m3u8_playlist_free (sink->playlist); g_queue_foreach (&sink->old_locations, (GFunc) g_free, NULL); g_queue_clear (&sink->old_locations); G_OBJECT_CLASS (parent_class)->finalize ((GObject *) sink); }