[vlc-commits] d3d11va: return ENOMEM for malloc error

Alexandre Janniaux git at videolan.org
Mon Feb 15 15:06:02 UTC 2021


vlc | branch: master | Alexandre Janniaux <ajanni at videolabs.io> | Fri Feb 12 15:34:23 2021 +0100| [26f60f9d783edf90998bd3e05ced2d73a047f6a8] | committer: Alexandre Janniaux

d3d11va: return ENOMEM for malloc error

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=26f60f9d783edf90998bd3e05ced2d73a047f6a8
---

 modules/codec/avcodec/d3d11va.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/codec/avcodec/d3d11va.c b/modules/codec/avcodec/d3d11va.c
index 87c80ed1e2..bd11cbb02c 100644
--- a/modules/codec/avcodec/d3d11va.c
+++ b/modules/codec/avcodec/d3d11va.c
@@ -205,7 +205,7 @@ static int Get(vlc_va_t *va, picture_t *pic, uint8_t **data)
     if (unlikely(pic->context == NULL))
     {
         va_surface_Release(va_surface);
-        return VLC_ENOITEM;
+        return VLC_ENOMEM;
     }
     data[3] = (uint8_t*)sys->hw_surface[va_surface_GetIndex(va_surface)];
     return VLC_SUCCESS;



More information about the vlc-commits mailing list