if (sink->playlist)
gst_m3u8_playlist_free (sink->playlist);
sink->playlist =
- gst_m3u8_playlist_new (GST_M3U8_PLAYLIST_VERSION, sink->playlist_length,
- FALSE);
+ gst_m3u8_playlist_new (GST_M3U8_PLAYLIST_VERSION, sink->playlist_length);
sink->state = GST_M3U8_PLAYLIST_RENDER_INIT;
}
if (sink->playlist)
gst_m3u8_playlist_free (sink->playlist);
sink->playlist =
- gst_m3u8_playlist_new (GST_M3U8_PLAYLIST_VERSION, sink->playlist_length,
- FALSE);
+ gst_m3u8_playlist_new (GST_M3U8_PLAYLIST_VERSION, sink->playlist_length);
g_queue_foreach (&sink->old_locations, (GFunc) g_free, NULL);
g_queue_clear (&sink->old_locations);
}
GstM3U8Playlist *
-gst_m3u8_playlist_new (guint version, guint window_size, gboolean allow_cache)
+gst_m3u8_playlist_new (guint version, guint window_size)
{
GstM3U8Playlist *playlist;
playlist = g_new0 (GstM3U8Playlist, 1);
playlist->version = version;
playlist->window_size = window_size;
- playlist->allow_cache = allow_cache;
playlist->type = GST_M3U8_PLAYLIST_TYPE_EVENT;
playlist->end_list = FALSE;
playlist->entries = g_queue_new ();
g_string_append_printf (playlist_str, "#EXT-X-VERSION:%d\n",
playlist->version);
- g_string_append_printf (playlist_str, "#EXT-X-ALLOW-CACHE:%s\n",
- playlist->allow_cache ? "YES" : "NO");
-
g_string_append_printf (playlist_str, "#EXT-X-MEDIA-SEQUENCE:%d\n",
playlist->sequence_number - playlist->entries->length);
struct _GstM3U8Playlist
{
guint version;
- gboolean allow_cache;
gint window_size;
gint type;
gboolean end_list;
} GstM3U8PlaylistRenderState;
-GstM3U8Playlist * gst_m3u8_playlist_new (guint version,
- guint window_size,
- gboolean allow_cache);
+GstM3U8Playlist * gst_m3u8_playlist_new (guint version,
+ guint window_size);
void gst_m3u8_playlist_free (GstM3U8Playlist * playlist);