Commit ef666af
committed
vo: don't update zoom and pan while changing file
When the current playlist entry changes, or when quitting, and
file-local options values are reset, the VO re-renders the current file
with the new option values before rendering the next file, if any,
causing flicker.
Fix this by not making VO drivers resize while changing file until the next
frame arrives.
Manually sending VOCTRL_SET_PANSCAN for the new file is only necessary
when navigating between images with the same dimensions, else VOs resize
automatically on reconfig.
The VO can still re-render while changing file to print new OSD
messages, only resizing and panning the image is delayed.
Fixes #7293
Fixes #7675
Fixes Dudemanguy/mpv-manga-reader#121 parent a11e486 commit ef666af
3 files changed
Lines changed: 34 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1991 | 1991 | | |
1992 | 1992 | | |
1993 | 1993 | | |
1994 | | - | |
| 1994 | + | |
| 1995 | + | |
| 1996 | + | |
1995 | 1997 | | |
| 1998 | + | |
1996 | 1999 | | |
1997 | 2000 | | |
1998 | 2001 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
| 142 | + | |
142 | 143 | | |
143 | 144 | | |
144 | 145 | | |
| |||
237 | 238 | | |
238 | 239 | | |
239 | 240 | | |
| 241 | + | |
240 | 242 | | |
241 | 243 | | |
242 | 244 | | |
243 | 245 | | |
244 | | - | |
245 | | - | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
246 | 260 | | |
247 | 261 | | |
248 | 262 | | |
| |||
1012 | 1026 | | |
1013 | 1027 | | |
1014 | 1028 | | |
| 1029 | + | |
| 1030 | + | |
1015 | 1031 | | |
1016 | 1032 | | |
1017 | 1033 | | |
| |||
1236 | 1252 | | |
1237 | 1253 | | |
1238 | 1254 | | |
| 1255 | + | |
| 1256 | + | |
| 1257 | + | |
| 1258 | + | |
| 1259 | + | |
| 1260 | + | |
| 1261 | + | |
| 1262 | + | |
| 1263 | + | |
| 1264 | + | |
| 1265 | + | |
1239 | 1266 | | |
1240 | 1267 | | |
1241 | 1268 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
542 | 542 | | |
543 | 543 | | |
544 | 544 | | |
| 545 | + | |
545 | 546 | | |
546 | 547 | | |
547 | 548 | | |
| |||
0 commit comments