mpv/sub
wm4 72aac9ae8a video: introduce failure path for image allocations
Until now, failure to allocate image data resulted in a crash (i.e.
abort() was called). This was intentional, because it's pretty silly to
degrade playback, and in almost all situations, the OOM will probably
kill you anyway. (And then there's the standard Linux overcommit
behavior, which also will kill you at some point.)

But I changed my opinion, so here we go. This change does not affect
_all_ memory allocations, just image data. Now in most failure cases,
the output will just be skipped. For video filters, this coincidentally
means that failure is treated as EOF (because the playback core assumes
EOF if nothing comes out of the video filter chain). In other
situations, output might be in some way degraded, like skipping frames,
not scaling OSD, and such.

Functions whose return values changed semantics:

  mp_image_alloc
  mp_image_new_copy
  mp_image_new_ref
  mp_image_make_writeable
  mp_image_setrefp
  mp_image_to_av_frame_and_unref
  mp_image_from_av_frame
  mp_image_new_external_ref
  mp_image_new_custom_ref
  mp_image_pool_make_writeable
  mp_image_pool_get
  mp_image_pool_new_copy
  mp_vdpau_mixed_frame_create
  vf_alloc_out_image
  vf_make_out_image_writeable
  glGetWindowScreenshot
2014-06-17 22:43:43 +02:00
..
ass_mp.c sub: add --sub-scale-with-window option 2014-06-14 19:17:31 +02:00
ass_mp.h sub: fix undefined behavior in ASS color calculation 2014-05-10 10:44:16 +02:00
dec_sub.c sub: prefer ffmpeg microdvd converter over internal one 2014-06-15 21:10:38 +02:00
dec_sub.h sub: uglify sub decoder with locking 2014-01-17 23:21:17 +01:00
draw_bmp.c video: introduce failure path for image allocations 2014-06-17 22:43:43 +02:00
draw_bmp.h
find_subfiles.c Add more const 2014-06-11 00:39:14 +02:00
find_subfiles.h vo: dropping subtitle files on the VO window adds them as subtitle files 2014-01-04 01:27:29 +01:00
img_convert.c video: introduce failure path for image allocations 2014-06-17 22:43:43 +02:00
img_convert.h
osd.c video: introduce failure path for image allocations 2014-06-17 22:43:43 +02:00
osd.h video/out: change aspects of OSD handling 2014-06-15 20:53:15 +02:00
osd_dummy.c sub: uglify OSD code path with locking 2014-01-18 01:27:43 +01:00
osd_font.otf osd: Center the volume icon in the osd font 2014-06-10 02:16:46 +02:00
osd_libass.c sub: uglify OSD code path with locking 2014-01-18 01:27:43 +01:00
osd_state.h video/out: change aspects of OSD handling 2014-06-15 20:53:15 +02:00
sd.h demux_libass: change how external ASS subtitles are loaded 2014-03-15 22:17:51 +01:00
sd_ass.c sub: remove old style override option 2014-06-05 01:10:48 +02:00
sd_lavc.c sub: remove old MPlayer DVD sub decoder 2014-03-16 13:19:28 +01:00
sd_lavc_conv.c Remove some more unneeded version checks 2014-03-16 13:19:28 +01:00
sd_lavf_srt.c Split mpvcore/ into common/, misc/, bstr/ 2013-12-17 02:39:45 +01:00
sd_microdvd.c Add more const 2014-06-11 00:39:14 +02:00
sd_movtext.c
sd_srt.c Add more const 2014-06-11 00:39:14 +02:00