switch (message->type) {
case GST_MESSAGE_ELEMENT:
{
- GFile *file;
const char *filename;
char *playlist_content;
GstClockTime running_time, duration;
duration = running_time - sink->last_running_time;
sink->last_running_time = running_time;
- file = g_file_new_for_path (filename);
GST_INFO_OBJECT (sink, "COUNT %d", sink->index);
if (sink->playlist_root == NULL)
entry_location = g_path_get_basename (filename);
g_free (name);
}
- gst_m3u8_playlist_add_entry (sink->playlist, entry_location, file,
+ gst_m3u8_playlist_add_entry (sink->playlist, entry_location,
NULL, duration, sink->index, discont);
g_free (entry_location);
playlist_content = gst_m3u8_playlist_render (sink->playlist);
};
static GstM3U8Entry *
-gst_m3u8_entry_new (const gchar * url, GFile * file, const gchar * title,
+gst_m3u8_entry_new (const gchar * url, const gchar * title,
gfloat duration, gboolean discontinuous)
{
GstM3U8Entry *entry;
entry->url = g_strdup (url);
entry->title = g_strdup (title);
entry->duration = duration;
- entry->file = file;
entry->discontinuous = discontinuous;
return entry;
}
g_free (entry->url);
g_free (entry->title);
- if (entry->file != NULL)
- g_object_unref (entry->file);
g_free (entry);
}
gboolean
gst_m3u8_playlist_add_entry (GstM3U8Playlist * playlist,
- const gchar * url, GFile * file, const gchar * title,
+ const gchar * url, const gchar * title,
gfloat duration, guint index, gboolean discontinuous)
{
GstM3U8Entry *entry;
if (playlist->type == GST_M3U8_PLAYLIST_TYPE_VOD)
return FALSE;
- entry = gst_m3u8_entry_new (url, file, title, duration, discontinuous);
+ entry = gst_m3u8_entry_new (url, title, duration, discontinuous);
if (playlist->window_size != -1) {
/* Delete old entries from the playlist */