Found workaround: sending EOS event to just-detached muxer's sinkpad avoids deadlock. But still, this way you cannot detach two muxer sinkpads simultaneously and reuse them later. Maybe there's some another event type, or another trick, which would fix this scenario also, but i don't know of such. -- Andrey Utkin