[1.0.3] Apply macros to exclude from line coverage 51/317051/1 accepted/tizen/unified/20240905.164024 accepted/tizen/unified/dev/20240910.111426 accepted/tizen/unified/x/20240906.021655
authorEunhye Choi <eunhae1.choi@samsung.com>
Tue, 3 Sep 2024 08:08:21 +0000 (17:08 +0900)
committerEunhye Choi <eunhae1.choi@samsung.com>
Tue, 3 Sep 2024 08:09:04 +0000 (17:09 +0900)
Change-Id: Iaf11c8edd9adbb480f0ee324759a564a9e82902b

packaging/capi-media-player.spec
src/player.c

index 6d69253..6f1bdec 100644 (file)
@@ -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
index ed79280..e6fea39 100644 (file)
@@ -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)
 {