diff options
author | Edward Hervey <edward@centricular.com> | 2023-03-03 08:21:08 +0100 |
---|---|---|
committer | Edward Hervey <bilboed@bilboed.com> | 2023-03-03 08:21:08 +0100 |
commit | bab780f419b111494c1648399b3cf0f86f3d3d6a (patch) | |
tree | ba1edb9ec93565d9e9d988270123dafd638644db | |
parent | d6e3a5da3ca3cffef222e5eeb40f2751c2933eac (diff) |
adaptivedemux2: Fix buffering treshold initialization
Properly initialize the stream default recommended buffering threshold so that
a default (10s) value is used until the subclass can provide a proper value
Fixes https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/2064
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4105>
-rw-r--r-- | subprojects/gst-plugins-good/ext/adaptivedemux2/gstadaptivedemux-stream.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/subprojects/gst-plugins-good/ext/adaptivedemux2/gstadaptivedemux-stream.c b/subprojects/gst-plugins-good/ext/adaptivedemux2/gstadaptivedemux-stream.c index a7949bef3a..2290b75c28 100644 --- a/subprojects/gst-plugins-good/ext/adaptivedemux2/gstadaptivedemux-stream.c +++ b/subprojects/gst-plugins-good/ext/adaptivedemux2/gstadaptivedemux-stream.c @@ -76,6 +76,8 @@ gst_adaptive_demux2_stream_init (GstAdaptiveDemux2Stream * stream) stream->last_ret = GST_FLOW_OK; stream->next_input_wakeup_time = GST_CLOCK_STIME_NONE; + stream->recommended_buffering_threshold = GST_CLOCK_TIME_NONE; + stream->fragment_bitrates = g_malloc0 (sizeof (guint64) * NUM_LOOKBACK_FRAGMENTS); |