Fix memory leak with discarded buffers
Increase wait time for preroll

Some files take longuer than 2 seconds to preroll
Add more option to the test-editor cli