[vlc-commits] dxva2: fix incorrect return value

Felix Abecassis git at videolan.org
Wed Mar 5 11:35:21 CET 2014


vlc/vlc-2.1 | branch: master | Felix Abecassis <felix.abecassis at gmail.com> | Tue Mar  4 15:21:59 2014 +0100| [4272f86dfa598e7f3323eac66b6fdedfb0112f36] | committer: Jean-Baptiste Kempf

dxva2: fix incorrect return value

Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>
(cherry picked from commit e3dfdba27fbba5f83bb8101e040b36e2480b03cf)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 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 1e2f0b7..a7561ae 100644
--- a/modules/codec/avcodec/dxva2.c
+++ b/modules/codec/avcodec/dxva2.c
@@ -505,7 +505,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