Browse Source

MT#60476 sdp_replace/sdp_version_check: remove left-overs

Remove left-overs introduced by:
9daa320c20

Change-Id: I307ce7bb658c2e3471b3d8e002d8b0a8d93b2072
pull/1848/head
Donat Zenichev 1 year ago
parent
commit
bf4c6246b0
1 changed files with 1 additions and 8 deletions
  1. +1
    -8
      daemon/sdp.c

+ 1
- 8
daemon/sdp.c View File

@ -2919,7 +2919,6 @@ static void sdp_version_replace(struct sdp_chopper *chop, sdp_sessions_q *sessio
static void sdp_version_check(struct sdp_chopper *chop, sdp_sessions_q *sessions,
struct call_monologue *monologue,
struct sdp_session *session,
unsigned int force_increase)
{
/* We really expect only a single session here, but we treat all the same regardless,
@ -3235,19 +3234,13 @@ int sdp_replace(struct sdp_chopper *chop, sdp_sessions_q *sessions,
struct call_monologue *monologue, sdp_ng_flags *flags)
{
struct sdp_session *session;
struct sdp_session *first_session = NULL;
struct sdp_media *sdp_media;
int sess_conn;
struct call_media *call_media;
struct packet_stream *ps;
const char *err = NULL;
unsigned int media_index = 0;
/* select very first session for 'SDP version' multi-session handling */
if (sessions->head)
first_session = sessions->head->data;
/* for the usual SDP offer/answer there is only one SDP session though. */
for (__auto_type l = sessions->head; l; l = l->next) {
session = l->data;
@ -3449,7 +3442,7 @@ int sdp_replace(struct sdp_chopper *chop, sdp_sessions_q *sessions,
* which forces version increase regardless changes in the SDP information.
*/
if (flags->replace_sdp_version || flags->replace_origin_full)
sdp_version_check(chop, sessions, monologue, first_session, flags->force_inc_sdp_ver);
sdp_version_check(chop, sessions, monologue, flags->force_inc_sdp_ver);
return 0;


Loading…
Cancel
Save