author | Buddy Liong <a0270631@ti.com> | |
Thu, 30 Jun 2016 16:51:36 +0000 (11:51 -0500) | ||
committer | Buddy Liong <a0270631@ti.com> | |
Tue, 5 Jul 2016 20:59:10 +0000 (15:59 -0500) | ||
commit | 2d68f0afae597bdcb4e39f80b799108ad53852d4 | |
tree | 3d5975107d52e31566bf5ecbf2c039002a59652c | tree | snapshot (tar.xz tar.gz zip) |
parent | 820edc50bf3f1e395a4a2f33493906fea8c01484 | commit | diff |
dce_register_codec shouldn't be called when codec_create returns NULL
Prior to this patch, when codec_create fails and return NULL VIDDEC3_Handle.
DCE will still caling dce_register_codec with NULL data which is not
necessary. When dce_register_codec return < 0, it continue processing for
low latency mode, which is also not necessary.
This patch check on VIDDEC3_Handle to make sure it is not NULL before
calling dce_register_codec. It also moves the processing for low latency
mode to be executed only when dce_register_codec is successful.
Change-Id: I4b8fba03272c3d7c825a0bdbe813e74e04aaf555
Signed-off-by: Buddy Liong <a0270631@ti.com>
Prior to this patch, when codec_create fails and return NULL VIDDEC3_Handle.
DCE will still caling dce_register_codec with NULL data which is not
necessary. When dce_register_codec return < 0, it continue processing for
low latency mode, which is also not necessary.
This patch check on VIDDEC3_Handle to make sure it is not NULL before
calling dce_register_codec. It also moves the processing for low latency
mode to be executed only when dce_register_codec is successful.
Change-Id: I4b8fba03272c3d7c825a0bdbe813e74e04aaf555
Signed-off-by: Buddy Liong <a0270631@ti.com>
src/ti/framework/dce/dce.c | diff | blob | history |