diff options
author | Kacper Michajłow <kasper93@gmail.com> | 2024-03-18 02:10:29 +0100 |
---|---|---|
committer | Kacper Michajłow <kasper93@gmail.com> | 2024-04-07 20:23:04 +0200 |
commit | 6177aa76161703bdd710240d0d4ca955a688e4ea (patch) | |
tree | 2d6a1cd5afd21753fd5351b6305acde67366e5ae /video/out | |
parent | 5a53fa7cad9791fd6f8cfd30ac860af9fade0d3a (diff) | |
download | mpv-6177aa76161703bdd710240d0d4ca955a688e4ea.tar.bz2 mpv-6177aa76161703bdd710240d0d4ca955a688e4ea.tar.xz |
vo_tct: add synchronized output support
See-Also: https://gist.github.com/christianparpart/d8a62cc1ab659194337d73e399004036
Diffstat (limited to 'video/out')
-rw-r--r-- | video/out/vo_tct.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/video/out/vo_tct.c b/video/out/vo_tct.c index e71e5112b8..a1caeed8bc 100644 --- a/video/out/vo_tct.c +++ b/video/out/vo_tct.c @@ -275,6 +275,8 @@ static void flip_page(struct vo *vo) if (vo->dwidth != width || vo->dheight != height) reconfig(vo, vo->params); + printf(TERM_ESC_SYNC_UPDATE_BEGIN); + p->frame_buf.len = 0; if (p->opts.algo == ALGO_PLAIN) { write_plain(&p->frame_buf, @@ -291,6 +293,8 @@ static void flip_page(struct vo *vo) bstr_xappend(NULL, &p->frame_buf, bstr0_s("\n")); if (p->opts.buffering <= VO_TCT_BUFFER_FRAME) print_buffer(&p->frame_buf); + + printf(TERM_ESC_SYNC_UPDATE_END); fflush(stdout); } |