Reconstruct audio encoding pipeline 99/233099/1
authorJeongmo Yang <jm80.yang@samsung.com>
Tue, 12 May 2020 07:05:10 +0000 (16:05 +0900)
committerJeongmo Yang <jm80.yang@samsung.com>
Tue, 12 May 2020 07:05:10 +0000 (16:05 +0900)
- Some muxer(ex:avmux_amr) should be created newly for next recording after cancel.
  Otherwise, it returns error when start next recording.

[Version] 0.10.201
[Profile] Common
[Issue Type] Improvement

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

index cb10428..8f8227a 100644 (file)
@@ -1,7 +1,7 @@
 Name:       libmm-camcorder
 Summary:    Camera and recorder library
-Version:    0.10.200
-Release:    1
+Version:    0.10.201
+Release:    0
 Group:      Multimedia/Libraries
 License:    Apache-2.0
 Source0:    %{name}-%{version}.tar.gz
index ad724e0..7b0fa1a 100644 (file)
@@ -483,6 +483,12 @@ _mmcamcorder_audio_command(MMHandleType handle, int command)
 
                _mmcamcorder_gst_set_state(handle, pipeline, GST_STATE_NULL);
 
+               /* Reconstruct audio encoding pipeline,
+                  because some muxer(ex:avmux_amr) should be created newly for next recording after cancel.
+                  Otherwise, it returns error when start next recording. */
+               _mmcamcorder_destroy_audio_pipeline(handle);
+               ret = _mmcamcorder_create_audio_pipeline(handle);
+
                sc->pipeline_time = 0;
                sc->pause_time = 0;
                sc->isMaxsizePausing = FALSE;