From 68308b3e5472f304e86c80296efcb0d8b7b18077 Mon Sep 17 00:00:00 2001 From: "Andre Moreira Magalhaes (andrunko)" Date: Tue, 5 Feb 2013 04:01:04 -0200 Subject: [PATCH] mssdemux: Properly compute new bitrate and use bitrate_limit. --- ext/smoothstreaming/gstmssdemux.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ext/smoothstreaming/gstmssdemux.c b/ext/smoothstreaming/gstmssdemux.c index a87418e460..0246226451 100644 --- a/ext/smoothstreaming/gstmssdemux.c +++ b/ext/smoothstreaming/gstmssdemux.c @@ -954,7 +954,8 @@ gst_mss_demux_reconfigure (GstMssDemux * mssdemux) if (!gst_mss_demux_all_streams_have_data (mssdemux)) return; - new_bitrate = 0.8 * gst_mss_demux_get_download_bitrate (mssdemux) / 1000; + new_bitrate = + mssdemux->bitrate_limit * gst_mss_demux_get_download_bitrate (mssdemux); if (mssdemux->connection_speed) { new_bitrate = MIN (mssdemux->connection_speed, new_bitrate); }