mpv/video/decode
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
..
dec_video.c player: hide audio/video codec and file format messages 2014-05-31 22:07:36 +02:00
dec_video.h audio: rename i_bps to 'bitrate' to avoid confusion 2014-05-28 21:37:50 +02:00
lavc.h video: warn if an emulated hwdec API is used 2014-05-28 02:08:45 +02:00
vaapi.c vaapi: fix destruction with --hwdec=haapi-copy 2014-05-28 02:08:45 +02:00
vd.h video: add a "hwdec" property to enable or disable hw decoding at runtime 2014-04-23 01:58:12 +02:00
vd_lavc.c video: introduce failure path for image allocations 2014-06-17 22:43:43 +02:00
vda.c vda: Hwaccel 1.2 support 2014-05-12 12:59:16 +02:00
vdpau.c video: warn if an emulated hwdec API is used 2014-05-28 02:08:45 +02:00