From: Jeongmo Yang Date: Wed, 15 May 2019 06:25:54 +0000 (+0900) Subject: Set pipeline state as NULL when cancel audio recording X-Git-Tag: accepted/tizen/unified/20190516.053136^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;ds=sidebyside;h=8fa579f504dc9ff5eeee58154051e8dc7e446e44;p=platform%2Fcore%2Fmultimedia%2Flibmm-camcorder.git Set pipeline state as NULL when cancel audio recording - 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 --- 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;