Browse Source

MT#56465 sdp_parse: add support of `t=` attr parsing

Explicitely parse timing at the session level.

Change-Id: I2db83d689ce830950eb5cada6426bf41ce331e7f
pull/1838/head
Donat Zenichev 1 year ago
parent
commit
611469eca0
1 changed files with 8 additions and 1 deletions
  1. +8
    -1
      daemon/sdp.c

+ 8
- 1
daemon/sdp.c View File

@ -104,6 +104,7 @@ struct sdp_session {
str s;
struct sdp_origin origin;
str session_name;
str session_timing; /* t= */
struct sdp_connection connection;
int rr, rs;
struct sdp_attributes attributes;
@ -1389,11 +1390,17 @@ new_session:
session->session_name = value_str;
break;
case 't':
errstr = "t= line found within media section";
if (media)
goto error;
session->session_timing = value_str;
break;
case 'i':
case 'u':
case 'e':
case 'p':
case 't':
case 'r':
case 'z':
break;


Loading…
Cancel
Save