valbok / QtAVPlayer

Free and open-source Qt Media Player library based on FFmpeg, for Linux, Windows, macOS, iOS and Android.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SetFilters does not refresh the current frame.

wenbingzhang opened this issue · comments

When paused, setting a new filter will not refresh the current frame.

Hi, thanks for contributing.
Setting new filter does not trigger updating a frame. It is intentionally made only for play(), pause() if not paused, stepBackward(), stepForward()

It is done like this, because current frame before new filter, is already processed and sent, and it is unable to reapply the filter on the same frame, since filters might be complicated too and expect many frames in sequence.

If you want to see the filter, just use

p.setFilter(filter);
p.stepForward();