mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-11-08 01:10:23 +00:00
[ncvisual_simple_streamer] render *after* extracting subtitle
This commit is contained in:
parent
16325f0446
commit
a0d37d442f
@ -1170,9 +1170,6 @@ void ncvisual_destroy(ncvisual* ncv){
|
||||
|
||||
int ncvisual_simple_streamer(ncvisual* ncv, struct ncvisual_options* vopts,
|
||||
const struct timespec* tspec, void* curry){
|
||||
if(notcurses_render(ncplane_notcurses(vopts->n))){
|
||||
return -1;
|
||||
}
|
||||
struct ncplane* subtitle = NULL;
|
||||
int ret = 0;
|
||||
if(curry){
|
||||
@ -1184,6 +1181,9 @@ int ncvisual_simple_streamer(ncvisual* ncv, struct ncvisual_options* vopts,
|
||||
}
|
||||
subtitle = ncvisual_subtitle_plane(subncp, ncv);
|
||||
}
|
||||
if(notcurses_render(ncplane_notcurses(vopts->n))){
|
||||
return -1;
|
||||
}
|
||||
clock_nanosleep(CLOCK_MONOTONIC, TIMER_ABSTIME, tspec, NULL);
|
||||
ncplane_destroy(subtitle);
|
||||
return ret;
|
||||
|
Loading…
Reference in New Issue
Block a user