From c0a5d11b421e5353b7c735f6c3afc1787e1a3772 Mon Sep 17 00:00:00 2001 From: Eunhye Choi Date: Tue, 3 Sep 2024 17:08:21 +0900 Subject: [PATCH] [1.0.3] Apply macros to exclude from line coverage Change-Id: Iaf11c8edd9adbb480f0ee324759a564a9e82902b --- packaging/capi-media-player.spec | 2 +- src/player.c | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/packaging/capi-media-player.spec b/packaging/capi-media-player.spec index 6d69253..6f1bdec 100644 --- a/packaging/capi-media-player.spec +++ b/packaging/capi-media-player.spec @@ -1,6 +1,6 @@ Name: capi-media-player Summary: A Media Player API -Version: 1.0.2 +Version: 1.0.3 Release: 0 Group: Multimedia/API License: Apache-2.0 diff --git a/src/player.c b/src/player.c index ed79280..e6fea39 100644 --- a/src/player.c +++ b/src/player.c @@ -596,6 +596,7 @@ static void __player_media_packet_video_decoded_cb(media_packet_h packet, void * mm_display_interface_evas_render(DP_INTERFACE((player_cli_s *)user_data), packet); } +//LCOV_EXCL_START static void __retrieve_buffer_cb_handler(callback_cb_info_s *cb_info, _player_recv_data *recv_data) { @@ -608,6 +609,7 @@ static void __interrupt_cb_handler(callback_cb_info_s *cb_info, _player_recv_dat muse_player_event_e ev = MUSE_PLAYER_EVENT_TYPE_INTERRUPT; ((player_interrupted_cb)cb_info->user_cb[ev])(PLAYER_INTERRUPTED_BY_RESOURCE_CONFLICT, cb_info->user_data[ev]); } +//LCOV_EXCL_STOP static void __error_cb_handler(callback_cb_info_s *cb_info, _player_recv_data *recv_data) { @@ -625,12 +627,14 @@ static void __error_cb_handler(callback_cb_info_s *cb_info, _player_recv_data *r } } +//LCOV_EXCL_START static void __disconnected_error_cb_handler(callback_cb_info_s *cb_info, _player_recv_data *recv_data) { muse_player_event_e ev = MUSE_PLAYER_EVENT_TYPE_ERROR; ((player_error_cb)cb_info->user_cb[ev])(PLAYER_ERROR_SERVICE_DISCONNECTED, cb_info->user_data[ev]); } +//LCOV_EXCL_STOP static void __buffering_cb_handler(callback_cb_info_s *cb_info, _player_recv_data *recv_data) { @@ -1023,6 +1027,7 @@ static void __media_packet_video_frame_cb_handler(callback_cb_info_s *cb_info, _ memset(recv_data->tfd, INVALID_DEFAULT_VALUE, sizeof(recv_data->tfd)); return; +//LCOV_EXCL_START ERROR: if (pkt) media_packet_destroy(pkt); @@ -1044,6 +1049,7 @@ ERROR: if (cb_info && v_data) PLAYER_SEND_MSG_ASYNC_WITH_NO_RETURN(MUSE_PLAYER_API_RETURN_VIDEO_DATA, cb_info->fd, MUSE_TYPE_POINTER, "v_data", v_data); +//LCOV_EXCL_STOP return; } @@ -1251,6 +1257,7 @@ static void __media_stream_video_seek_cb_handler(callback_cb_info_s *cb_info, _p } } +//LCOV_EXCL_START static void __media_stream_audio_seek_cb_handler(callback_cb_info_s *cb_info, _player_recv_data *recv_data) { unsigned long long offset; @@ -1261,6 +1268,7 @@ static void __media_stream_audio_seek_cb_handler(callback_cb_info_s *cb_info, _p (offset, cb_info->user_data[MUSE_PLAYER_EVENT_TYPE_MEDIA_STREAM_AUDIO_SEEK]); } } +//LCOV_EXCL_STOP static void __video_stream_changed_cb_handler(callback_cb_info_s *cb_info, _player_recv_data *recv_data) { @@ -1737,6 +1745,7 @@ static void _remove_all_ret_msg(callback_cb_info_s *cb_info) } } +//LCOV_EXCL_START static void _notify_disconnected(callback_cb_info_s *cb_info) { muse_player_event_e event = MUSE_PLAYER_EVENT_TYPE_SERVICE_DISCONNECTED; @@ -1756,6 +1765,7 @@ static void _notify_disconnected(callback_cb_info_s *cb_info) _player_event_queue_add(&cb_info->event_queue, data); } } +//LCOV_EXCL_STOP static void *client_cb_handler(gpointer data) { @@ -4140,6 +4150,7 @@ int player_set_completed_cb(player_h player, player_completed_cb callback, void return __set_callback(MUSE_PLAYER_EVENT_TYPE_COMPLETE, player, callback, user_data); } +//LCOV_EXCL_START static void __retrieve_buffer_cb(void *user_data) { player_cli_s *player = (player_cli_s *)user_data; @@ -4156,6 +4167,7 @@ static void __retrieve_buffer_cb(void *user_data) LOGW("flush all packet : 0x%x [gapless %d]", ret, gapless); } +//LCOV_EXCL_STOP static int __player_set_retrieve_buffer_cb(player_h player, player_retrieve_buffer_cb callback, void *user_data) { -- 2.7.4