webrtc_transceiver: Fix to add missing payload type of an offer description 28/281428/1
authorSangchul Lee <sc11.lee@samsung.com>
Mon, 19 Sep 2022 02:43:01 +0000 (11:43 +0900)
committerSangchul Lee <sc11.lee@samsung.com>
Mon, 19 Sep 2022 02:53:40 +0000 (11:53 +0900)
When transceiver direction was set to 'recvonly', a particular transceiver
was added with a preference caps without payload type. When trying to
create an offer description, the payload type must be added to the caps
regardless its source type.

[Version] 0.3.241
[Issue Type] Bug fix

Change-Id: I924b297a3a23522ca7466c45eb0d65de1972d82c
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
packaging/capi-media-webrtc.spec
src/webrtc_transceiver.c

index 63e49ef248ecfe64ad221c4dd8a4c0b99f6eac67..0b901b90ef998ad372f94e930517811bb092d120 100644 (file)
@@ -1,6 +1,6 @@
 Name:       capi-media-webrtc
 Summary:    A WebRTC library in Tizen Native API
-Version:    0.3.240
+Version:    0.3.241
 Release:    0
 Group:      Multimedia/API
 License:    Apache-2.0
index 35c61da4e957b9534e98260cdaedadd7f6153f08..4790989998bcf85f23cf9b64c01794b398c94917 100644 (file)
@@ -231,7 +231,7 @@ static rtp_payload_info_s * __get_payload_info_by_encoding_name(const char *enco
        return NULL;
 }
 
-static void __check_and_update_transceiver(webrtc_gst_slot_s *source)
+static void __check_and_update_recvonly_transceiver(webrtc_gst_slot_s *source)
 {
        rtp_payload_info_s *payload_info = NULL;
 
@@ -259,12 +259,9 @@ void _update_transceivers_for_offer(webrtc_s *webrtc)
                if (!(source = webrtc->gst.sources[i]))
                        continue;
 
-               if (source->type != WEBRTC_MEDIA_SOURCE_TYPE_NULL)
-                       continue;
-
                LOG_DEBUG("source[id:%u, type:%d, media_types:0x%x]", source->id, source->type, source->media_types);
 
-               __check_and_update_transceiver(source);
+               __check_and_update_recvonly_transceiver(source);
        }
 }