adaptivedemux: start/stop the manifest update loop on liveness or periodic update...
authorMatthew Waters <matthew@centricular.com>
Mon, 14 Aug 2017 11:33:51 +0000 (21:33 +1000)
committerMatthew Waters <matthew@centricular.com>
Tue, 15 Aug 2017 05:19:32 +0000 (15:19 +1000)
commitcbf4a44426ca98df8337768ed7bb8a87b5c169a3
treea20b5b21422927859e9b7c990d590d97d261079f
parentdf4c6385aa0739d59e83916d32b704de9b9f3d40
adaptivedemux: start/stop the manifest update loop on liveness or periodic update changes

Scenario:
A manifest starts out in live mode but then the recording is finalized
and a subsequent update changes the state to a non-live manifest when
the server has finished recording/transcoding/whatever with the full
list of fragments.

Without this patch, the manifest update task is never stopped on the
live->non-live transition and will busy loop, burning through one CPU
core.

https://bugzilla.gnome.org/show_bug.cgi?id=786275
gst-libs/gst/adaptivedemux/gstadaptivedemux.c