diff --git a/daemon/sdp.c b/daemon/sdp.c index 0f34fc8e2..3d2ec9b38 100644 --- a/daemon/sdp.c +++ b/daemon/sdp.c @@ -122,7 +122,6 @@ struct sdp_media { int port_count; struct sdp_connection connection; - const char *c_line_pos; // XXX to be obsoleted struct session_bandwidth bandwidth; struct sdp_attributes attributes; str_slice_q format_list; /* list of slice-alloc'd str objects */ @@ -1285,10 +1284,6 @@ new_session: break; case 'm': - if (media && !media->c_line_pos) - media->c_line_pos = full_line.s; - - media = g_slice_alloc0(sizeof(*media)); media->session = session; attrs_init(&media->attributes); @@ -1310,9 +1305,6 @@ new_session: break; case 'a': - if (media && !media->c_line_pos) - media->c_line_pos = full_line.s; - attr = g_slice_alloc0(sizeof(*attr)); attr->full_line = full_line; @@ -1329,9 +1321,6 @@ new_session: break; case 'b': - if (media && !media->c_line_pos) - media->c_line_pos = full_line.s; - /* RR:0 */ if (value.len < 4) break; @@ -1355,11 +1344,6 @@ new_session: } break; - case 'k': - if (media && !media->c_line_pos) - media->c_line_pos = full_line.s; - break; - case 's': errstr = "s= line found within media section"; if (media) @@ -1374,6 +1358,7 @@ new_session: session->session_timing = value; break; + case 'k': case 'i': case 'u': case 'e':