1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-24 07:42:17 +00:00
mpv/sub
wm4 572802e866 osd_libass: avoid libass warnings if scripts set ASS text early
Lua scripts can call osd_set_external() early (before the VO window is
created and obj->vo_res is filled), in which case the PlayResX field
would be set to nonsense, and libass would print a pointless warning.

There's an easy and a hard fix: either just go on and pass dummy values
to libass (basically like before, just clamp them to avoid the values
which make libass print the warning). Or attempt to update the PlayRes
field to correct values on rendering (since at rendering time, you
always know the screen size and the correct values). Do the latter.

Since various things use PlayRes for scaling things, this might still
not be fully ideal. This is a general problem with the async scripting
interface.
2017-07-16 13:33:19 +02:00
..
ass_mp.c ass_mp: change license to LGPL 2017-04-20 12:53:09 +02:00
ass_mp.h ass_mp: change license to LGPL 2017-04-20 12:53:09 +02:00
dec_sub.c player: add experimental stream recording feature 2017-02-07 17:05:17 +01:00
dec_sub.h player: add experimental stream recording feature 2017-02-07 17:05:17 +01:00
draw_bmp.c
draw_bmp.h
filter_sdh.c filter_sdh: remove pointless set_pos function 2017-04-20 08:22:46 +02:00
img_convert.c
img_convert.h
lavc_conv.c lavc_conv: pass pkt_timebase to ffmpeg 2017-02-18 12:53:11 +01:00
osd_dummy.c command: shorten long playlists on OSD 2017-01-26 18:24:53 +01:00
osd_font.otf osd-font: make volume muted glyph slightly thicker 2017-04-22 18:03:16 +01:00
osd_libass.c osd_libass: avoid libass warnings if scripts set ASS text early 2017-07-16 13:33:19 +02:00
osd_state.h osd_libass: avoid libass warnings if scripts set ASS text early 2017-07-16 13:33:19 +02:00
osd.c sub/osd: relicense to LGPL 2017-04-20 12:53:47 +02:00
osd.h sub/osd: relicense to LGPL 2017-04-20 12:53:47 +02:00
sd_ass.c options: slight cleanup of --sub-ass-style-override 2017-06-07 15:55:03 +02:00
sd_lavc.c Replace remaining avcodec_close() calls 2017-07-16 12:51:48 +02:00
sd.h sub: add SDH subtitle filter 2017-03-25 15:04:05 +01:00