[vlc-commits] dxva2: fix incorrect return value

Felix Abecassis git at videolan.org
Tue Mar 4 21:36:27 CET 2014


vlc | branch: master | Felix Abecassis <felix.abecassis at gmail.com> | Tue Mar  4 15:21:59 2014 +0100| [e3dfdba27fbba5f83bb8101e040b36e2480b03cf] | committer: Rémi Denis-Courmont

dxva2: fix incorrect return value

Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>

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

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

diff --git a/modules/codec/avcodec/dxva2.c b/modules/codec/avcodec/dxva2.c
index 330daf0..824eaee 100644
--- a/modules/codec/avcodec/dxva2.c
+++ b/modules/codec/avcodec/dxva2.c
@@ -498,7 +498,7 @@ static int Open(vlc_va_t *external, int codec_id, const es_format_t *fmt)
 {
     vlc_va_dxva2_t *va = calloc(1, sizeof(*va));
     if (!va)
-        return NULL;
+        return VLC_EGENERIC;
 
     external->sys = va;
     /* */



More information about the vlc-commits mailing list