Commit bf00b3ba authored by Andrea Gianarda's avatar Andrea Gianarda
Browse files

Create only as many streams as the offer has even if the local media description was bigger

parent cc4bdc9f
master compat/ios_app_5_3 deleteme feature/AEC3 feature/account_manager_services_devices_list feature/allow-raw-mwi-notification feature/basic_auth feature/conference_availability feature/lime_status_by_uri feature/load-static-ms2-plugins feature/media_encryption_settings_on_account feature/medialess feature/screensharing_clean feature/swift_push_unit_tests feature/test-new-ccmp-deployment feature/to-delete-compile-last-wrapper fix/ECC-for-desktop fix/account-lime-user-creation fix/android_window fix/auth_info_finding fix/build-with-cmake4 fix/chat_lesage_local_address_no_contact fix/conf_unschedule_video fix/copy_message_id_content_operator fix/database fix/db_friend_list_fix fix/didUpdatePushCredentials_debug_investigation fix/encrypted_chat_subscription_failed fix/fec-find-payload-type-number-master fix/fixes-from-5.4-march-2 fix/force_shared_lib_python_wrapper fix/import-from-legacy-db fix/itc-misuse fix/jvm_cpp_wrapper_on_android fix/message_not_sent_rework fix/no-longer-use-deprecated-findpythoninterp-cmake-module fix/opengl_54 fix/optimize_conference_reinvite fix/paused_by_remote_no_rtp_timeout_master fix/playfile fix/plugin_timeout fix/python_build_macos fix/python_const_build_warning fix/qt_crash fix/revert_swift_wrapper_maybenil_not_processed_in_setters_that_throws fix/screen_jul fix/startup_restart fix/swift_wrapper_maybenil_in_setters_bug_5_4 fix/switch_data_sync_to_short_service fix/tone-indications fix/transfer_state fix/turn-relay fix/unsubscribe_upon_core_stop fix/uuid4-generation fix/webrtc-ice fix/window_build_dec24 fix/workaround_for_sip_simple_messages_with_bad_to_header hotfix/use-negotiated-extension-ids release/5.4 test/ansible test/call_no_routes test/lime_double_digest_auth_challenge workaround/voip_push_handled_in_app 5.5.0-alpha 5.4.8 5.4.7 5.4.6 5.4.5 5.4.4 5.4.3 5.4.2 5.4.1 5.4.0 5.4.0-beta
1 merge request!2904Create only as many streams as the offer has even if the local media description was bigger
Showing with 4 additions and 2 deletions
......@@ -111,8 +111,10 @@ void StreamsGroup::fillLocalMediaDescription(OfferAnswerContext &params) {
void StreamsGroup::createStreams(const OfferAnswerContext &params) {
size_t index;
const auto &localMd = params.localMediaDescription;
for (index = 0; index < localMd->streams.size(); ++index) {
// If the offer answer context has a remote media description, it means that we are replying to an INVITE, therefore
// we need to create only as many streams as the offer has
const auto &md = params.remoteMediaDescription ? params.remoteMediaDescription : params.localMediaDescription;
for (index = 0; index < md->streams.size(); ++index) {
Stream *s = nullptr;
params.scopeStreamToIndexWithDiff(index, mCurrentOfferAnswerState);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment