summaryrefslogtreecommitdiffstats
path: root/video/decode/vd_lavc.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-09-02 22:45:07 +0200
committerwm4 <wm4@nowhere>2015-09-02 22:45:07 +0200
commit3f5715a0530f8c44ac00c8756805c47050251ef3 (patch)
tree778eaff0adec740b4e69b07fa8821f52808196c2 /video/decode/vd_lavc.c
parent418af6f0cb3a4716fcbf1edcabb771582283d350 (diff)
downloadmpv-3f5715a0530f8c44ac00c8756805c47050251ef3.tar.bz2
mpv-3f5715a0530f8c44ac00c8756805c47050251ef3.tar.xz
vo_opengl: improve robustness against PBO failure
If PBO upload fails, disable PBOs and revert to the normal codepath. In theory we should retry PBO upload on failure (because OpenGL specifies that it can sporadically fail), but since it normally doesn't happen, and the fallback will work, I'm not bothering. Some restructuring is needed, since glUnmapBuffer needs to be called earlier. In fact, the old code structure didn't make too much sense, and is a leftover from MPlayer's direct rendering support, which let the decoder decode to a PBO-mapped region. This means the buffer_ptr field can be dropped. Drop buffer_size as well, since it only had 2 possible values (0 or the size required for the current config).
Diffstat (limited to 'video/decode/vd_lavc.c')
0 files changed, 0 insertions, 0 deletions