[vlc-commits] va_surface: fix return value when device creation fails
Steve Lhomme
git at videolan.org
Thu Oct 17 17:02:57 CEST 2019
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Thu Oct 17 16:59:40 2019 +0200| [81fe02a5d140093bc69a54a7eef7966e4e5ca3b5] | committer: Steve Lhomme
va_surface: fix return value when device creation fails
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=81fe02a5d140093bc69a54a7eef7966e4e5ca3b5
---
modules/codec/avcodec/va_surface.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/codec/avcodec/va_surface.c b/modules/codec/avcodec/va_surface.c
index a3e3751511..a14292e57b 100644
--- a/modules/codec/avcodec/va_surface.c
+++ b/modules/codec/avcodec/va_surface.c
@@ -193,7 +193,7 @@ va_pool_t * va_pool_Create(vlc_va_t *va, const struct va_pool_cfg *cbs)
/* */
if (cbs->pf_create_device(va)) {
msg_Err(va, "Failed to create device");
- return VLC_EGENERIC;
+ return NULL;
}
msg_Dbg(va, "CreateDevice succeed");
More information about the vlc-commits
mailing list