Skip to content

rtsp-media: Try to get dynamic payloaders by name from their bin first

First try "pay", then "pay_%s" (where %s == pad name). And only then fall back to the code that simply takes the first payloader that is found.

The current code usually works (but is racy) because it will always take the payloader that was last added (due to g_list_prepend() when adding elements) in pad-added and that's usually the correct one. But if a new payloader is added between pad-added and us trying to get it, we would get the wrong payloader.

Merge request reports