adaptivedemux2: Fix download helper with libsoup 3.0.x
authorJan Alexander Steffens (heftig) <jan.steffens@ltnglobal.com>
Thu, 18 Aug 2022 14:36:45 +0000 (16:36 +0200)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Thu, 18 Aug 2022 20:16:18 +0000 (20:16 +0000)
commit5ae3c9318d7ebb53a096125d1fcbe1b1169d9d33
tree54abaddc60ada169e01ab406ac1978adcdaa71d8
parent135edee4840dba610cb2191c087d828e422d908d
adaptivedemux2: Fix download helper with libsoup 3.0.x

libsoup 3.0.x dispatches using a single source attached when the session
is created, so we need to create the session with the same context that
our download thread is later using.

2.74 or 3.1 will dispatch a response using the context which sent the
request. However, for any context other than the one that created the
session, this will also create and destroy sources, so there's still
some slight performance benefit.

Fixes: https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/1384
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2913>
subprojects/gst-plugins-good/ext/adaptivedemux2/downloadhelper.c