GstWebRTCRTPTransceiver *trans;
GArray *transceivers;
int mline;
- int i;
+ guint i;
RET_VAL_IF(webrtc == NULL, WEBRTC_ERROR_INVALID_PARAMETER, "webrtc is NULL");
RET_VAL_IF(direction > WEBRTC_TRANSCEIVER_DIRECTION_SENDRECV, WEBRTC_ERROR_INVALID_PARAMETER, "invalid direction");
g_signal_emit_by_name(webrtc->gst.webrtcbin, "get-transceivers", &transceivers);
for (i = 0; i < transceivers->len; i++) {
trans = g_array_index(transceivers, GstWebRTCRTPTransceiver *, i);
- if (trans->mline == mline) {
+ if ((int)trans->mline == mline) {
trans->direction = __direction_info[direction].gst;
LOG_DEBUG("Set direction to transceiver[%p, index:%d, mline:%u, direction:%s]",
trans, i, trans->mline, __direction_info[direction].str);
GstWebRTCRTPTransceiver *trans;
GArray *transceivers;
int mline;
- int i;
+ guint i;
RET_VAL_IF(webrtc == NULL, WEBRTC_ERROR_INVALID_PARAMETER, "webrtc is NULL");
RET_VAL_IF(direction == NULL, WEBRTC_ERROR_INVALID_PARAMETER, "direction is NULL");
g_signal_emit_by_name(webrtc->gst.webrtcbin, "get-transceivers", &transceivers);
for (i = 0; i < transceivers->len; i++) {
trans = g_array_index(transceivers, GstWebRTCRTPTransceiver *, i);
- if (trans->mline == mline) {
+ if ((int)trans->mline == mline) {
ret = __convert_direction(trans->direction, direction);
if (ret == WEBRTC_ERROR_NONE)
LOG_DEBUG("found transceiver[%p, index:%d, mline:%u, mid:%s, direction:%s]",
{
webrtc_gst_slot_s *source = value;
- if (source->type == GPOINTER_TO_UINT(user_data)) {
+ if (source->type == GPOINTER_TO_INT(user_data)) {
LOG_INFO("found media packet source[%p, id:%u, media_format:%p]", source, source->id, source->media_format);
if (!source->media_format)
return TRUE;
RET_VAL_IF(webrtc == NULL, false, "webrtc is NULL");
- source = g_hash_table_find(webrtc->gst.source_slots, __check_format_is_not_set_cb, GUINT_TO_POINTER(WEBRTC_MEDIA_SOURCE_TYPE_MEDIA_PACKET));
+ source = g_hash_table_find(webrtc->gst.source_slots, __check_format_is_not_set_cb, GINT_TO_POINTER(WEBRTC_MEDIA_SOURCE_TYPE_MEDIA_PACKET));
if (source) {
LOG_ERROR("media format is not set to the media packet source[%u]", source->id);
return false;
webrtc_gst_slot_s *source = value;
gchar *location = NULL;
- if (source->type == GPOINTER_TO_UINT(user_data)) {
+ if (source->type == GPOINTER_TO_INT(user_data)) {
LOG_INFO("found file source[%p, id:%u]", source, source->id);
g_object_get(G_OBJECT(gst_bin_get_by_name(source->bin, DEFAULT_NAME_FILE_SRC)), "location", &location, NULL);
RET_VAL_IF(webrtc == NULL, false, "webrtc is NULL");
- source = g_hash_table_find(webrtc->gst.source_slots, __check_path_is_not_set_cb, GUINT_TO_POINTER(WEBRTC_MEDIA_SOURCE_TYPE_FILE));
+ source = g_hash_table_find(webrtc->gst.source_slots, __check_path_is_not_set_cb, GINT_TO_POINTER(WEBRTC_MEDIA_SOURCE_TYPE_FILE));
if (source) {
LOG_ERROR("media path is not set to the file source[%u]", source->id);
return false;
if (gst_buffer_map(buffer, &buff_info, GST_MAP_READWRITE)) {
if (has_tbm_surface) {
- int i;
+ unsigned int i;
guint8 *ptr = buff_info.data;
for (i = 0; i < ts_info.num_planes; i++) {
LOG_DEBUG("plane[%d][ptr:%p size:%u]", i, ts_info.planes[i].ptr, ts_info.planes[i].size);
len = strlen(string);
src_size = g_strlcpy(dest_arr, string, MAX_STRING_LEN);
- if (src_size != len) {
+ if ((int)src_size != len) {
g_print("failed to g_strlcpy()\n");
return -1;
}
webrtc_bytes_data_h *data = message;
const char *data_p;
unsigned long size;
- int i = 0;
+ unsigned long i = 0;
webrtc_get_data(data, &data_p, &size);
g_print("bytes message[%p, size:%lu]\n", data_p, size);
if (gst_buffer_map(buffer, &buff_info, GST_MAP_READ)) {
if (has_tbm_surface) {
- int i;
+ unsigned int i;
guint8 *ptr = buff_info.data;
for (i = 0; i < ts_info.num_planes; i++) {
g_print("plane[%d][ptr:%p size:%u]\n", i, ts_info.planes[i].ptr, ts_info.planes[i].size);
{
gchar **tokens = NULL;
guint len;
- int i;
+ guint i;
RET_IF(!conn, "conn is NULL");
RET_IF(!text, "text is NULL");