[vlc-commits] nvdec: fix shadowed variable

Alexandre Janniaux git at videolan.org
Thu Sep 10 15:41:59 CEST 2020


vlc | branch: master | Alexandre Janniaux <ajanni at videolabs.io> | Thu Sep 10 13:33:00 2020 +0200| [a6b192d40f26ad3bf15b00469ad5686e469917d8] | committer: Alexandre Janniaux

nvdec: fix shadowed variable

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

 modules/hw/nvdec/nvdec.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/hw/nvdec/nvdec.c b/modules/hw/nvdec/nvdec.c
index b3e96dc6ab..2ad4e2089b 100644
--- a/modules/hw/nvdec/nvdec.c
+++ b/modules/hw/nvdec/nvdec.c
@@ -333,7 +333,7 @@ static int CUDAAPI HandleVideoSequence(void *p_opaque, CUVIDEOFORMAT *p_format)
                 vlc_assert_unreachable();
         }
 
-        int ret = CALL_CUDA_DEC(cuCtxPushCurrent, p_sys->devsys->cuCtx);
+        ret = CALL_CUDA_DEC(cuCtxPushCurrent, p_sys->devsys->cuCtx);
         if (ret != CUDA_SUCCESS)
             goto cuda_error;
 



More information about the vlc-commits mailing list