diff options
author | Jeongmo Yang <jm80.yang@samsung.com> | 2019-05-15 15:25:54 +0900 |
---|---|---|
committer | Jeongmo Yang <jm80.yang@samsung.com> | 2019-05-15 16:13:46 +0900 |
commit | 574a2fb17d4dd4a46dd8be7aa732f7d8bd752e65 (patch) | |
tree | 0c3ce75f766279d1fd9bcece08b21f92862d6b75 | |
parent | 9c6ee4e834ef263c4e95edc7b67da4aeb1ffba14 (diff) | |
download | libmm-camcorder-accepted/tizen_5.0_unified.tar.gz libmm-camcorder-accepted/tizen_5.0_unified.tar.bz2 libmm-camcorder-accepted/tizen_5.0_unified.zip |
Set pipeline state as NULL when cancel audio recordingsubmit/tizen_5.0/20190516.023938accepted/tizen/5.0/unified/20190517.010642tizen_5.0accepted/tizen_5.0_unified
- 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.175
[Profile] Common
[Issue Type] Bug fix
Change-Id: I5a588b0e93e8e5c04f81166ce24bdb4214b39221
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
-rw-r--r-- | packaging/libmm-camcorder.spec | 2 | ||||
-rw-r--r-- | src/mm_camcorder_audiorec.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/packaging/libmm-camcorder.spec b/packaging/libmm-camcorder.spec index a9e44ca..557ba5f 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.174 +Version: 0.10.175 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; |