From 836e3e9980f994928bec38d0b17ad70392900be7 Mon Sep 17 00:00:00 2001 From: Sangchul Lee Date: Tue, 5 Jul 2022 12:54:25 +0900 Subject: [PATCH] fixup! Add API to set/get transceiver codec Unnecessary type check is removed which does not comply with doxygen. Change-Id: I3e66a52572fb323763198504859e0b0ab2550282 --- src/webrtc_source.c | 6 ------ 1 file changed, 6 deletions(-) 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; -- 2.34.1