#include "webrtc_private.h"
#include "webrtc_source_private.h"
+//LCOV_EXCL_START
static void __remove_filesrc_pad_block_probe(webrtc_gst_slot_s *source, unsigned int av_idx)
{
RET_IF(source == NULL, "source is NULL");
return WEBRTC_ERROR_NONE;
}
+//LCOV_EXCL_STOP
static void __remove_rest_of_elements_for_filesrc_pipeline(webrtc_gst_slot_s *source)
{
}
#ifdef SUPPORT_FILESRC_AUDIO_FORMAT_CHANGE
+//LCOV_EXCL_START
static int __create_rest_of_raw_audio_elements_for_filesrc_pipeline(webrtc_s *webrtc, webrtc_gst_slot_s *source, GList **element_list)
{
GstElement *queue = NULL;
SAFE_G_LIST_FREE_FULL(_element_list, gst_object_unref);
return WEBRTC_ERROR_INVALID_OPERATION;
}
+//LCOV_EXCL_STOP
#endif
static void __filesrc_pipeline_decodebin_pad_added_cb(GstElement *element, GstPad *pad, gpointer data)
GstBuffer *buffer;
} packet_buffer_s;
+//LCOV_EXCL_START
static void __memory_finalize_cb(packet_buffer_s *packet_buffer)
{
LOG_DEBUG("packet[%p] buffer[%p] is about to release", packet_buffer->packet, packet_buffer->buffer);
}
}
-//LCOV_EXCL_START
static GstBuffer* __make_buffer_from_zerocopy_video_packet(webrtc_gst_slot_s *source, media_packet_h packet)
{
int ret = MEDIA_PACKET_ERROR_NONE;
}
} else {
+//LCOV_EXCL_START
guchar *data_ptr;
media_packet_get_buffer_data_ptr(packet, (void **)&data_ptr);
if (data_ptr == NULL) {
return WEBRTC_ERROR_INVALID_OPERATION;
}
memcpy(buff_info.data, data_ptr, size);
+//LCOV_EXCL_STOP
}
buff_info.size = size;
/* the incoming media packet should have zerocopy format (e.g., SN12) */
if (source->zerocopy_enabled) {
+//LCOV_EXCL_START
if (!source->allocator)
source->allocator = gst_tizen_allocator_new();
buffer = __make_buffer_from_zerocopy_video_packet(source, packet);
}
gst_buffer_unref(buffer);
return WEBRTC_ERROR_NONE;
+//LCOV_EXCL_STOP
}
ret = media_packet_get_extra(packet, (void **)&buffer);
RET_VAL_IF(ret != MEDIA_PACKET_ERROR_NONE, WEBRTC_ERROR_INVALID_OPERATION, "failed to media_packet_get_extra()");
if (GST_IS_BUFFER(buffer)) {
+//LCOV_EXCL_START
LOG_DEBUG("external gst buffer[%p]", buffer);
g_signal_emit_by_name(G_OBJECT(appsrc), "push-buffer", buffer, &gst_ret, NULL);
if (gst_ret != GST_FLOW_OK) {
}
media_packet_destroy(packet);
return WEBRTC_ERROR_NONE;
+//LCOV_EXCL_STOP
}
/* FIXME: make subfunction for codes below */
}
}
+//LCOV_EXCL_START
static GstCaps *__make_transceiver_caps_with_pt(rtp_payload_info_s *payload_info, int payload_type)
{
RET_VAL_IF(payload_info == NULL, NULL, "payload_info is NULL");
__update_transceiver_with_pt(source, WEBRTC_MEDIA_TYPE_VIDEO, payload_info);
}
}
+//LCOV_EXCL_STOP
void _update_transceivers_for_offer(webrtc_s *webrtc)
{