Fix SVACE issue - NULL_AFTER_DEREF 50/304050/2
authorJeongmo Yang <jm80.yang@samsung.com>
Tue, 9 Jan 2024 11:24:20 +0000 (20:24 +0900)
committerJeongmo Yang <jm80.yang@samsung.com>
Tue, 9 Jan 2024 11:32:23 +0000 (20:32 +0900)
[Version] 0.10.301
[Issue Type] SVACE

Change-Id: Idc8e39998808bf270104d2de0142a022340c6afb
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
packaging/libmm-camcorder.spec
src/mm_camcorder_audiorec.c
src/mm_camcorder_videorec.c

index b011dcc9086970cd7b68632c7bd3507c6ec6ba01..423038fb9f95910c53881c7891a0258ae796a706 100755 (executable)
@@ -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
index ccc37451407807d0e773f3781888256d2f1381d2..ca5dd3026852641dee9b19229eb26d0260b5f977 100644 (file)
@@ -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;
index 1f2a0a3747b91c3e2acfd40a7eeca0d37ce0fa1a..687da3041573105a22c9a73f91402e69a9eaecad 100644 (file)
@@ -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) {