fixup! Add API to set/get transceiver codec 09/277309/1 submit/tizen/20220706.020113
authorSangchul Lee <sc11.lee@samsung.com>
Tue, 5 Jul 2022 03:54:25 +0000 (12:54 +0900)
committerSangchul Lee <sc11.lee@samsung.com>
Tue, 5 Jul 2022 03:55:40 +0000 (12:55 +0900)
Unnecessary type check is removed which does not comply with doxygen.

Change-Id: I3e66a52572fb323763198504859e0b0ab2550282

src/webrtc_source.c

index 29d424b19d3042f4504a99b279c73c348a393cd6..715809f7960bba265b9792399f06202b8f2bd7e5 100644 (file)
@@ -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;