[vlc-commits] directx_va: simplify code
Steve Lhomme
git at videolan.org
Sat Oct 27 18:23:12 CEST 2018
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Sat Oct 27 14:39:40 2018 +0200| [425fef82683d250cabf87256293560598d1feb07] | committer: Steve Lhomme
directx_va: simplify code
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=425fef82683d250cabf87256293560598d1feb07
---
modules/codec/avcodec/directx_va.c | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/modules/codec/avcodec/directx_va.c b/modules/codec/avcodec/directx_va.c
index c3c3be7907..3988036bdb 100644
--- a/modules/codec/avcodec/directx_va.c
+++ b/modules/codec/avcodec/directx_va.c
@@ -346,13 +346,7 @@ void directx_va_Close(vlc_va_t *va, directx_sys_t *dx_sys)
int directx_va_Open(vlc_va_t *va, directx_sys_t *dx_sys)
{
- if (va_pool_Open(va, &dx_sys->va_pool) != VLC_SUCCESS)
- goto error;
-
- return VLC_SUCCESS;
-
-error:
- return VLC_EGENERIC;
+ return va_pool_Open(va, &dx_sys->va_pool);
}
static bool profile_supported(const directx_va_mode_t *mode, const es_format_t *fmt,
More information about the vlc-commits
mailing list