From: Sangchul Lee Date: Tue, 5 Jul 2022 03:54:25 +0000 (+0900) Subject: fixup! Add API to set/get transceiver codec X-Git-Tag: submit/tizen/20220706.020113^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=836e3e9980f994928bec38d0b17ad70392900be7;p=platform%2Fcore%2Fapi%2Fwebrtc.git fixup! Add API to set/get transceiver codec Unnecessary type check is removed which does not comply with doxygen. Change-Id: I3e66a52572fb323763198504859e0b0ab2550282 --- diff --git a/src/webrtc_source.c b/src/webrtc_source.c index 29d424b1..715809f7 100644 --- a/src/webrtc_source.c +++ b/src/webrtc_source.c @@ -3104,12 +3104,6 @@ int _get_transceiver_direction(webrtc_s *webrtc, unsigned int source_id, webrtc_ RET_VAL_IF(webrtc->gst.source_slots == NULL, WEBRTC_ERROR_INVALID_OPERATION, "source_slots is NULL"); RET_VAL_IF((source = _get_slot_by_id(webrtc->gst.source_slots, source_id)) == NULL, WEBRTC_ERROR_INVALID_PARAMETER, "source is NULL"); - if (source->type == WEBRTC_MEDIA_SOURCE_TYPE_FILE || - source->type == WEBRTC_MEDIA_SOURCE_TYPE_MEDIA_PACKET) { - LOG_ERROR("invalid type(%d)", source->type); - return WEBRTC_ERROR_INVALID_PARAMETER; - } - if (media_type == WEBRTC_MEDIA_TYPE_AUDIO && source->media_types & MEDIA_TYPE_AUDIO) { *direction = source->av[AV_IDX_AUDIO].direction;