hlssink: remove unused attribute
authorThiago Santos <thiagoss@osg.samsung.com>
Tue, 17 Feb 2015 13:04:27 +0000 (10:04 -0300)
committerThiago Santos <thiagoss@osg.samsung.com>
Tue, 17 Feb 2015 14:12:41 +0000 (11:12 -0300)
the GFile attribute is never used

ext/hls/gsthlssink.c
ext/hls/gstm3u8playlist.c
ext/hls/gstm3u8playlist.h

index 5206e50..bbec243 100644 (file)
@@ -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);
index 075e45f..b7dabb9 100644 (file)
@@ -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 */
index bc81aed..0e95132 100644 (file)
@@ -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,