summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeongmo Yang <jm80.yang@samsung.com>2019-05-15 15:25:54 +0900
committerJeongmo Yang <jm80.yang@samsung.com>2019-05-15 15:25:54 +0900
commit8fa579f504dc9ff5eeee58154051e8dc7e446e44 (patch)
tree712c84a895a717a8afb116d4c412d1e5c69f5b81
parent40f4cfa417acb194b7cb4febd9d98b841cace816 (diff)
downloadlibmm-camcorder-submit/tizen/20190515.071241.tar.gz
libmm-camcorder-submit/tizen/20190515.071241.tar.bz2
libmm-camcorder-submit/tizen/20190515.071241.zip
Set pipeline state as NULL when cancel audio recordingsubmit/tizen/20190515.071241accepted/tizen/unified/20190516.053136
- Previously, filesink element only changed as NULL state when cancel audio recording, and it caused crash in mp4mux if next recording is started.(NULL trak pointer in mp4mux) [Version] 0.10.183 [Profile] Common [Issue Type] Bug fix Change-Id: I5a588b0e93e8e5c04f81166ce24bdb4214b39221 Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
-rw-r--r--packaging/libmm-camcorder.spec2
-rw-r--r--src/mm_camcorder_audiorec.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/packaging/libmm-camcorder.spec b/packaging/libmm-camcorder.spec
index c005650..47f13ae 100644
--- 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.182
+Version: 0.10.183
Release: 0
Group: Multimedia/Libraries
License: Apache-2.0
diff --git a/src/mm_camcorder_audiorec.c b/src/mm_camcorder_audiorec.c
index 0159475..f8dd8d4 100644
--- a/src/mm_camcorder_audiorec.c
+++ b/src/mm_camcorder_audiorec.c
@@ -519,7 +519,7 @@ _mmcamcorder_audio_command(MMHandleType handle, int command)
else
MMCAMCORDER_G_OBJECT_SET(sc->encode_element[_MMCAMCORDER_ENCSINK_AQUE].gst, "empty-buffers", FALSE);
- _mmcamcorder_gst_set_state(handle, sc->encode_element[_MMCAMCORDER_ENCSINK_SINK].gst, GST_STATE_NULL);
+ _mmcamcorder_gst_set_state(handle, pipeline, GST_STATE_NULL);
sc->pipeline_time = 0;
sc->pause_time = 0;