mssdemux: Properly compute new bitrate and use bitrate_limit.

This commit is contained in:
Andre Moreira Magalhaes (andrunko) 2013-02-05 04:01:04 -02:00 committed by Thiago Santos
parent 706b127daa
commit 68308b3e54

View file

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