ncvisual_stream(): update python streamcb typedef

This commit is contained in:
nick black 2020-05-16 19:32:37 -04:00 committed by Nick Black
parent c824e1ac02
commit d1b5a39135
2 changed files with 2 additions and 1 deletions

View File

@ -299,7 +299,7 @@ void ncvisual_destroy(struct ncvisual* ncv);
nc_err_e ncvisual_decode(struct ncvisual* nc);
int ncvisual_render(const struct ncvisual* ncv, int begy, int begx, int leny, int lenx);
char* ncvisual_subtitle(const struct ncvisual* ncv);
typedef int (*streamcb)(struct notcurses* nc, struct ncvisual* ncv, void*);
typedef int (*streamcb)(struct notcurses*, struct ncvisual*, const struct timespec*, void*);
int ncvisual_stream(struct notcurses* nc, struct ncvisual* ncv, nc_err_e* err, float timescale, streamcb streamer, void* curry);
int ncblit_bgrx(struct ncplane* nc, int placey, int placex, int linesize, const unsigned char* data, int begy, int begx, int leny, int lenx);
int ncblit_rgba(struct ncplane* nc, int placey, int placex, int linesize, const unsigned char* data, int begy, int begx, int leny, int lenx);

View File

@ -1179,6 +1179,7 @@ int ncvisual_stream(notcurses* nc, ncvisual* ncv, nc_err_e* ncerr,
}
}
++frame;
}
if(*ncerr == NCERR_EOF){
return 0;
}