mssdemux: removing unused functions
authorThiago Santos <thiago.sousa.santos@collabora.com>
Fri, 8 Feb 2013 05:01:46 +0000 (02:01 -0300)
committerThiago Santos <thiago.sousa.santos@collabora.com>
Wed, 8 May 2013 00:09:48 +0000 (21:09 -0300)
ext/smoothstreaming/gstmssdemux.c

index 8eaf2fba23b85e5b8d941471c8759a97808f375d..bc6ad7025edae7c721fffa77be4efe3e5c03e0fd 100644 (file)
@@ -927,38 +927,6 @@ gst_mss_demux_reload_manifest (GstMssDemux * mssdemux)
   g_object_unref (downloader);
 }
 
   g_object_unref (downloader);
 }
 
-static guint64
-gst_mss_demux_get_download_bitrate (GstMssDemux * mssdemux)
-{
-  GSList *iter;
-  guint64 total = 0;
-  guint64 count = 0;
-
-  for (iter = mssdemux->streams; iter; iter = g_slist_next (iter)) {
-    GstMssDemuxStream *stream = iter->data;
-
-    total += gst_download_rate_get_current_rate (&stream->download_rate);
-    count++;
-  }
-
-  return total / count;
-}
-
-static gboolean
-gst_mss_demux_all_streams_have_data (GstMssDemux * mssdemux)
-{
-  GSList *iter;
-
-  for (iter = mssdemux->streams; iter; iter = g_slist_next (iter)) {
-    GstMssDemuxStream *stream = iter->data;
-
-    if (!stream->have_data)
-      return FALSE;
-  }
-
-  return TRUE;
-}
-
 static void
 gst_mss_demux_reconfigure_stream (GstMssDemuxStream * stream)
 {
 static void
 gst_mss_demux_reconfigure_stream (GstMssDemuxStream * stream)
 {
@@ -991,28 +959,6 @@ gst_mss_demux_reconfigure_stream (GstMssDemuxStream * stream)
   }
 }
 
   }
 }
 
-static void
-gst_mss_demux_reconfigure (GstMssDemux * mssdemux)
-{
-  GSList *iter;
-
-  /* TODO lock? */
-
-  if (!gst_mss_demux_all_streams_have_data (mssdemux))
-    return;
-
-  //gst_mss_demux_stop_tasks (mssdemux, TRUE);
-  for (iter = mssdemux->streams; iter; iter = g_slist_next (iter)) {
-    GstMssDemuxStream *stream;
-
-    stream = iter->data;
-
-    gst_mss_demux_reconfigure_stream (stream);
-  }
-
-  //gst_mss_demux_restart_tasks (mssdemux);
-}
-
 static void
 _free_data_queue_item (gpointer obj)
 {
 static void
 _free_data_queue_item (gpointer obj)
 {
@@ -1157,7 +1103,6 @@ gst_mss_demux_download_loop (GstMssDemuxStream * stream)
   GST_LOG_OBJECT (mssdemux, "download loop start %p", stream);
 
   GST_OBJECT_LOCK (mssdemux);
   GST_LOG_OBJECT (mssdemux, "download loop start %p", stream);
 
   GST_OBJECT_LOCK (mssdemux);
-
   GST_DEBUG_OBJECT (mssdemux,
       "Starting streams reconfiguration due to bitrate changes");
   gst_mss_demux_reconfigure_stream (stream);
   GST_DEBUG_OBJECT (mssdemux,
       "Starting streams reconfiguration due to bitrate changes");
   gst_mss_demux_reconfigure_stream (stream);