From: Thiago Santos Date: Fri, 8 Feb 2013 05:01:46 +0000 (-0300) Subject: mssdemux: removing unused functions X-Git-Tag: 1.19.3~507^2~13688 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b579cb1ddc0d25dc425f8d4035fe74f0d5a8f732;p=platform%2Fupstream%2Fgstreamer.git mssdemux: removing unused functions --- diff --git a/ext/smoothstreaming/gstmssdemux.c b/ext/smoothstreaming/gstmssdemux.c index 8eaf2fba23..bc6ad7025e 100644 --- a/ext/smoothstreaming/gstmssdemux.c +++ b/ext/smoothstreaming/gstmssdemux.c @@ -927,38 +927,6 @@ gst_mss_demux_reload_manifest (GstMssDemux * mssdemux) 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) { @@ -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) { @@ -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_DEBUG_OBJECT (mssdemux, "Starting streams reconfiguration due to bitrate changes"); gst_mss_demux_reconfigure_stream (stream);