From 26a6fa5db2336e5497687d52ca4115be0996094c Mon Sep 17 00:00:00 2001 From: Haesu Gwon Date: Fri, 24 Mar 2017 11:42:04 +0900 Subject: [PATCH] Fix build error Change-Id: If1effc0aa9552787660bebf6bf0dd15365205e7a Signed-off-by: Haesu Gwon --- packaging/capi-media-recorder.spec | 2 +- src/recorder.c | 2 +- test/recorder_test.c | 14 +++++++++----- 3 files changed, 11 insertions(+), 7 deletions(-) diff --git a/packaging/capi-media-recorder.spec b/packaging/capi-media-recorder.spec index ca07a33..40aac24 100644 --- a/packaging/capi-media-recorder.spec +++ b/packaging/capi-media-recorder.spec @@ -1,7 +1,7 @@ Name: capi-media-recorder Summary: A Recorder API Version: 0.2.52 -Release: 1 +Release: 2 Group: Multimedia/API License: Apache-2.0 Source0: %{name}-%{version}.tar.gz diff --git a/src/recorder.c b/src/recorder.c index 87b5b8f..73480d6 100644 --- a/src/recorder.c +++ b/src/recorder.c @@ -2043,7 +2043,7 @@ int recorder_set_filename(recorder_h recorder, const char *filename) muse_recorder_api_e api = MUSE_RECORDER_API_SET_FILENAME; recorder_cli_s *pc = (recorder_cli_s *)recorder; recorder_msg_param param; - char set_filename[RECORDER_FILENAME_MAX] = {0, }; + char set_filename[RECORDER_FILENAME_MAX] = {'\0',}; if (!pc || !pc->cb_info) { LOGE("NULL handle"); diff --git a/test/recorder_test.c b/test/recorder_test.c index ee509f2..1009754 100644 --- a/test/recorder_test.c +++ b/test/recorder_test.c @@ -476,8 +476,8 @@ static void print_menu() g_print("\t >>>>>>>>>>>>>>>>>>>>>>>>>>>>>> [etc]\n"); g_print("\t 's' Strobe (Flash) \n"); g_print("\t 'z' Video-stabilization \n"); - g_print("\t 'M' Camcorder Motion Rate setting \n"); - g_print("\t 'm' Set/Unset muxed stream callback \n"); + g_print("\t 'm' Camcorder Motion Rate setting \n"); + g_print("\t 'M' Set/Unset muxed stream callback \n"); g_print("\t 'b' back\n"); g_print("\t=======================================\n"); } else { @@ -491,7 +491,7 @@ static void print_menu() g_print("\t '5' Samplerate \n"); g_print("\t '6' Channel \n"); g_print("\t '7' Encoder bitrate \n"); - g_print("\t 'm' Set/Unset muxed stream callback \n"); + g_print("\t 'M' Set/Unset muxed stream callback \n"); g_print("\t 'b' back\n"); g_print("\t=======================================\n"); } @@ -964,7 +964,7 @@ static void setting_menu(gchar buf) result = recorder_attr_set_recording_motion_rate(hcamcorder->recorder, motion_rate); break; - case 'm': /* Setting > muxed stream callback */ + case 'M': /* Setting > muxed stream callback */ g_print("* Muxed stream callback\n"); flush_stdin(); @@ -980,6 +980,8 @@ static void setting_menu(gchar buf) else result = RECORDER_ERROR_INVALID_PARAMETER; + break; + case 'b': /* back */ hcamcorder->menu_state = MENU_STATE_MAIN; break; @@ -1075,7 +1077,7 @@ static void setting_menu(gchar buf) result = recorder_attr_set_audio_encoder_bitrate(hcamcorder->recorder, bitrate); break; - case 'm': /* Setting > muxed stream callback */ + case 'M': /* Setting > muxed stream callback */ g_print("* Muxed stream callback\n"); flush_stdin(); @@ -1091,6 +1093,8 @@ static void setting_menu(gchar buf) else result = RECORDER_ERROR_INVALID_PARAMETER; + break; + case 'b': /* back */ hcamcorder->menu_state = MENU_STATE_MAIN; break; -- 2.7.4