aboutsummaryrefslogtreecommitdiffhomepage
path: root/player/lua
diff options
context:
space:
mode:
authorGravatar wm4 <wm4@nowhere>2016-10-26 20:43:03 +0200
committerGravatar wm4 <wm4@nowhere>2016-10-26 20:44:05 +0200
commit90b968a67a73473d615e2ee6135756573d0da6f2 (patch)
treeb587fa97140e35d27f08f35fb0f5c53f21b28b0a /player/lua
parentfc4318d23e07cb1e3b212dfe21e5988ef23f6749 (diff)
player: show subtitles on VO if --force-window is used
If a VO is created, but no video is playing (i.e. --force-window is used), then until now no subtitles were shown. This is because VO subtitle display normally depends on video frame timing. If there are no video frames, there can be no subtitles. Change this and add some code to handle this situation specifically. Set a subtitle PTS manually and request VO redrawing manually, which gets the subtitles rendered somehow. This is kind of shaky. The subtitles are essentially sampled at arbitrary times (such as when new audio data is decoded and pushed to the AO, or on user interaction). To make a it slightly more consistent, force a completely arbitrary minimum FPS of 10. Other solutions (such as creating fake video) would be more intrusive or would require VO-level API changes. Fixes #3684.
Diffstat (limited to 'player/lua')
0 files changed, 0 insertions, 0 deletions