-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;
-}
-