mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-30 04:00:37 +00:00
hlssink: remove unused attribute
the GFile attribute is never used
This commit is contained in:
parent
e9ab79dc36
commit
6ec5904d46
3 changed files with 4 additions and 11 deletions
|
@ -252,7 +252,6 @@ gst_hls_sink_handle_message (GstBin * bin, GstMessage * message)
|
|||
switch (message->type) {
|
||||
case GST_MESSAGE_ELEMENT:
|
||||
{
|
||||
GFile *file;
|
||||
const char *filename;
|
||||
char *playlist_content;
|
||||
GstClockTime running_time, duration;
|
||||
|
@ -270,7 +269,6 @@ gst_hls_sink_handle_message (GstBin * bin, GstMessage * message)
|
|||
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);
|
||||
|
@ -280,7 +278,7 @@ gst_hls_sink_handle_message (GstBin * bin, GstMessage * message)
|
|||
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);
|
||||
|
|
|
@ -43,7 +43,7 @@ enum
|
|||
};
|
||||
|
||||
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;
|
||||
|
@ -54,7 +54,6 @@ gst_m3u8_entry_new (const gchar * url, GFile * file, const gchar * title,
|
|||
entry->url = g_strdup (url);
|
||||
entry->title = g_strdup (title);
|
||||
entry->duration = duration;
|
||||
entry->file = file;
|
||||
entry->discontinuous = discontinuous;
|
||||
return entry;
|
||||
}
|
||||
|
@ -66,8 +65,6 @@ gst_m3u8_entry_free (GstM3U8Entry * entry)
|
|||
|
||||
g_free (entry->url);
|
||||
g_free (entry->title);
|
||||
if (entry->file != NULL)
|
||||
g_object_unref (entry->file);
|
||||
g_free (entry);
|
||||
}
|
||||
|
||||
|
@ -119,7 +116,7 @@ gst_m3u8_playlist_free (GstM3U8Playlist * playlist)
|
|||
|
||||
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;
|
||||
|
@ -130,7 +127,7 @@ gst_m3u8_playlist_add_entry (GstM3U8Playlist * playlist,
|
|||
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 */
|
||||
|
|
|
@ -36,7 +36,6 @@ struct _GstM3U8Entry
|
|||
gfloat duration;
|
||||
gchar *title;
|
||||
gchar *url;
|
||||
GFile *file;
|
||||
gboolean discontinuous;
|
||||
};
|
||||
|
||||
|
@ -61,7 +60,6 @@ GstM3U8Playlist * gst_m3u8_playlist_new (guint version,
|
|||
void gst_m3u8_playlist_free (GstM3U8Playlist * playlist);
|
||||
gboolean gst_m3u8_playlist_add_entry (GstM3U8Playlist * playlist,
|
||||
const gchar * url,
|
||||
GFile * file,
|
||||
const gchar *title,
|
||||
gfloat duration,
|
||||
guint index,
|
||||
|
|
Loading…
Reference in a new issue