From beee02ace848781ea956a660c3c15d05b370c177 Mon Sep 17 00:00:00 2001 From: Jeongmo Yang Date: Tue, 9 Jan 2024 20:24:20 +0900 Subject: [PATCH] Fix SVACE issue - NULL_AFTER_DEREF [Version] 0.10.301 [Issue Type] SVACE Change-Id: Idc8e39998808bf270104d2de0142a022340c6afb Signed-off-by: Jeongmo Yang --- packaging/libmm-camcorder.spec | 2 +- src/mm_camcorder_audiorec.c | 2 +- src/mm_camcorder_videorec.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packaging/libmm-camcorder.spec b/packaging/libmm-camcorder.spec index b011dcc..423038f 100755 --- a/packaging/libmm-camcorder.spec +++ b/packaging/libmm-camcorder.spec @@ -1,6 +1,6 @@ Name: libmm-camcorder Summary: Camera and recorder library -Version: 0.10.300 +Version: 0.10.301 Release: 0 Group: Multimedia/Libraries License: Apache-2.0 diff --git a/src/mm_camcorder_audiorec.c b/src/mm_camcorder_audiorec.c index ccc3745..ca5dd30 100644 --- a/src/mm_camcorder_audiorec.c +++ b/src/mm_camcorder_audiorec.c @@ -759,7 +759,7 @@ static GstPadProbeReturn __mmcamcorder_audio_dataprobe_voicerecorder(GstPad *pad hcamcorder->astream_cb, GST_TIME_ARGS(GST_BUFFER_PTS(buffer)), format, channel, mapinfo.size, curdcb); /* CALL audio stream callback */ - if (hcamcorder->astream_cb && buffer) { + if (hcamcorder->astream_cb) { MMCamcorderAudioStreamDataType stream; stream.data = (void *)mapinfo.data; diff --git a/src/mm_camcorder_videorec.c b/src/mm_camcorder_videorec.c index 1f2a0a3..687da30 100644 --- a/src/mm_camcorder_videorec.c +++ b/src/mm_camcorder_videorec.c @@ -1814,7 +1814,7 @@ static GstPadProbeReturn __mmcamcorder_audio_dataprobe_audio_mute(GstPad *pad, G GST_TIME_ARGS(GST_BUFFER_PTS(buffer)), hcamcorder->astream_cb, format, channel, mapinfo.size); /* CALL audio stream callback */ - if (hcamcorder->astream_cb && buffer) { + if (hcamcorder->astream_cb) { MMCamcorderAudioStreamDataType stream; if (_mmcamcorder_get_state((MMHandleType)hcamcorder) < MM_CAMCORDER_STATE_PREPARE) { -- 2.7.4