adaptivedemux2: Fix buffering treshold initialization
authorEdward Hervey <edward@centricular.com>
Fri, 3 Mar 2023 07:21:08 +0000 (08:21 +0100)
committerEdward Hervey <bilboed@bilboed.com>
Fri, 3 Mar 2023 07:21:08 +0000 (08:21 +0100)
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>

subprojects/gst-plugins-good/ext/adaptivedemux2/gstadaptivedemux-stream.c

index a7949be..2290b75 100644 (file)
@@ -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);