membraneframework / membrane_ffmpeg_swresample_plugin

Plugin performing audio conversion, resampling and channel mixing, using SWResample module of FFmpeg library
Apache License 2.0
2 stars 4 forks source link

Don't try to flush if the stream format never came #55

Closed nickdichev-firework closed 6 months ago

nickdichev-firework commented 6 months ago

In my pipeline an element which comes before the converter is sending an EOS before it has forwarded the stream format (the element itself never received the stream format to forward). This is raising an error when the converter tries to process the end of stream, since the native is nil.

In this case, we should probably just forward the eos through the output pad.