[vlc-commits] mmal: codec: do not call Close before bcm_host_init() is called
Steve Lhomme
git at videolan.org
Fri Jan 10 16:42:38 CET 2020
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Fri Jan 10 16:20:53 2020 +0100| [344164acadba0d010842c509f9f1d6e2325e9694] | committer: Steve Lhomme
mmal: codec: do not call Close before bcm_host_init() is called
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=344164acadba0d010842c509f9f1d6e2325e9694
---
modules/hw/mmal/codec.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/modules/hw/mmal/codec.c b/modules/hw/mmal/codec.c
index 0d856de2a1..d09f212090 100644
--- a/modules/hw/mmal/codec.c
+++ b/modules/hw/mmal/codec.c
@@ -109,10 +109,8 @@ static int OpenDecoder(vlc_object_t *obj)
return VLC_EGENERIC;
sys = calloc(1, sizeof(decoder_sys_t));
- if (!sys) {
- ret = VLC_ENOMEM;
- goto out;
- }
+ if (unlikely(sys == NULL))
+ return VLC_ENOMEM;
dec->p_sys = sys;
sys->opaque = var_InheritBool(dec, MMAL_OPAQUE_NAME);
More information about the vlc-commits
mailing list