From d1b5a39135f8a4209c56f78fd032bae961bc6a0c Mon Sep 17 00:00:00 2001 From: nick black Date: Sat, 16 May 2020 19:32:37 -0400 Subject: [PATCH] ncvisual_stream(): update python streamcb typedef --- python/src/notcurses/build_notcurses.py | 2 +- src/lib/visual.cpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/python/src/notcurses/build_notcurses.py b/python/src/notcurses/build_notcurses.py index aeab2e4d3..22b38d40a 100644 --- a/python/src/notcurses/build_notcurses.py +++ b/python/src/notcurses/build_notcurses.py @@ -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); diff --git a/src/lib/visual.cpp b/src/lib/visual.cpp index 092a94bd7..1a7c8863a 100644 --- a/src/lib/visual.cpp +++ b/src/lib/visual.cpp @@ -1179,6 +1179,7 @@ int ncvisual_stream(notcurses* nc, ncvisual* ncv, nc_err_e* ncerr, } } ++frame; + } if(*ncerr == NCERR_EOF){ return 0; }