mirror of
https://github.com/outbackdingo/UltraGrid.git
synced 2026-03-21 11:40:22 +00:00
Every cap. filter: fixed wrong command order
This commit is contained in:
@@ -128,6 +128,8 @@ static struct video_frame *filter(void *state, struct video_frame *in)
|
||||
{
|
||||
struct state_every *s = state;
|
||||
|
||||
s->current = (s->current + 1) % s->num;
|
||||
|
||||
if (s->current >= s->denom) {
|
||||
VIDEO_FRAME_DISPOSE(in);
|
||||
return NULL;
|
||||
@@ -137,8 +139,6 @@ static struct video_frame *filter(void *state, struct video_frame *in)
|
||||
memcpy(frame->tiles, in->tiles, in->tile_count * sizeof(struct tile));
|
||||
frame->fps /= (double) s->num / s->denom;
|
||||
|
||||
s->current = (s->current + 1) % s->num;
|
||||
|
||||
frame->callbacks.dispose = dispose_frame;
|
||||
frame->callbacks.dispose_udata = in;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user