urisourcebin: Don't do buffering if source already does
authorEdward Hervey <edward@centricular.com>
Sat, 29 May 2021 05:31:15 +0000 (07:31 +0200)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Wed, 30 Mar 2022 14:30:54 +0000 (14:30 +0000)
commit76d01f0d73734edd02908922250fa29b27fdb1b1
treeb61cf9ba4395be174c38ba6516778371cc54911b
parent7eea928dd0ae3ab0366c64331800a02e95a3a857
urisourcebin: Don't do buffering if source already does

Sources that can internally handle buffering shouldn't have yet-another
buffering element after it. This can be simply detected by checking if it can
answer a TIME BUFFERING query just after creation.

If that is the case, we can expose the element source pads directly

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1905>
subprojects/gst-plugins-base/gst/playback/gsturisourcebin.c