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

Handle Stream Format flush fix #59

Closed bartkrak closed 3 months ago

bartkrak commented 3 months ago

After adding converter flushing in handle_stream_format in last update, there is now a case in which if stream format is changed before any converting was done, native converter is nil, causing :unifex_parse_arg and crash of pipeline. I've observed this while testing some demos in membrane_demo. This PR fixes the issue.