membraneframework / membrane_core

The core of the Membrane Framework, advanced multimedia processing framework
https://membrane.stream
Apache License 2.0
1.22k stars 34 forks source link

Add "optional pad" type in Membrane Core #836

Open varsill opened 5 days ago

varsill commented 5 days ago

Along with availability: :always and availability: :on_request, we could have availability: :optional pad. A pad with availability: :optional could either exist or not exist, but there would be at most one instance of such a pad. The pad could be referred from the element's implementation with just plain name, without any dynamic identifier, which would be a benefit over using availability: :on_request pads, where we need to be aware of the dynamic id.