diff options
author | Thiago Santos <thiagoss@osg.samsung.com> | 2015-02-17 10:04:27 -0300 |
---|---|---|
committer | Thiago Santos <thiagoss@osg.samsung.com> | 2015-02-17 11:12:41 -0300 |
commit | 6ec5904d461104972c63536de0c60cfc65b61b53 (patch) | |
tree | 788e1864487b543da2bedb76c508bfd05fa1f6f9 | |
parent | e9ab79dc36a1fb8dc20668f0d3a5172b936444ba (diff) |
hlssink: remove unused attribute
the GFile attribute is never used
-rw-r--r-- | ext/hls/gsthlssink.c | 4 | ||||
-rw-r--r-- | ext/hls/gstm3u8playlist.c | 9 | ||||
-rw-r--r-- | ext/hls/gstm3u8playlist.h | 2 |
3 files changed, 4 insertions, 11 deletions
diff --git a/ext/hls/gsthlssink.c b/ext/hls/gsthlssink.c index 5206e50b6..bbec24311 100644 --- a/ext/hls/gsthlssink.c +++ b/ext/hls/gsthlssink.c @@ -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); diff --git a/ext/hls/gstm3u8playlist.c b/ext/hls/gstm3u8playlist.c index 075e45fa3..b7dabb983 100644 --- a/ext/hls/gstm3u8playlist.c +++ b/ext/hls/gstm3u8playlist.c @@ -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 */ diff --git a/ext/hls/gstm3u8playlist.h b/ext/hls/gstm3u8playlist.h index bc81aedb6..0e9513248 100644 --- a/ext/hls/gstm3u8playlist.h +++ b/ext/hls/gstm3u8playlist.h @@ -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, |