Moved the space checking code at proper place. 49/141349/5
authoryogesh manav <yogesh.m@samsung.com>
Mon, 31 Jul 2017 05:57:44 +0000 (11:27 +0530)
committerJeongmo Yang <jm80.yang@samsung.com>
Tue, 29 Aug 2017 10:44:11 +0000 (19:44 +0900)
commit39fde29c62f2adbb796311dfe41f8c3cb7a7e0aa
treefff62c605e80f4c2d61607e3b3be6001ed3d8532
parent26e0a4ec271a227ae34795e3d634b08d816f46d1
Moved the space checking code at proper place.

fixed the coding syntax warnings
Fix for following scenario
1. If recording location is set in mmc card and during audio/video recording if user remove the mmc card, then muse-server used to crash.
2. while recording if device space is over then internally mm-camcorder start dropping the frame, but if in background data copy is in progress
   using MTP, then there is chance that there is no space to write the file header also. as it may be occupied by the data copy.
   so before doing the commit, check the minimum space availability in destination storage type.

[Version] 0.10.132
[Profile] Common
[Issue Type] Bug fix
[Dependency module] N/A

Change-Id: I9ebecd03ff8bb5c7b6782a1d807717090fcd4b6c
Signed-off-by: yogesh manav <yogesh.m@samsung.com>
packaging/libmm-camcorder.spec
src/mm_camcorder_audiorec.c
src/mm_camcorder_videorec.c