mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-30 12:49:40 +00:00
adaptivedemux: Add debug code to change bitrate.
Add some disabled-by-default debugging code that forces bitrate changes by modulating the measured bitrate every few fragments
This commit is contained in:
parent
03f96dd731
commit
5fc21d5c74
1 changed files with 13 additions and 0 deletions
|
@ -1864,6 +1864,19 @@ gst_adaptive_demux_stream_update_current_bitrate (GstAdaptiveDemux * demux,
|
|||
GST_DEBUG_OBJECT (demux, "Bitrate after bitrate limit (%0.2f): %"
|
||||
G_GUINT64_FORMAT, demux->bitrate_limit,
|
||||
stream->current_download_rate * 8);
|
||||
|
||||
#if 0
|
||||
/* Debugging code, modulate the bitrate every few fragments */
|
||||
{
|
||||
static guint ctr = 0;
|
||||
if (ctr % 3 == 0) {
|
||||
GST_INFO_OBJECT (demux, "Halving reported bitrate for debugging");
|
||||
stream->current_download_rate /= 2;
|
||||
}
|
||||
ctr++;
|
||||
}
|
||||
#endif
|
||||
|
||||
return stream->current_download_rate;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue