Bug 892911 - Check that media section is found before adding rtcp-fb attributes r=ekr

This commit is contained in:
Adam Roach [:abr] 2013-07-12 12:53:22 -05:00
parent 40afce0125
commit db31a83257

View File

@ -4810,7 +4810,7 @@ gsmsdp_negotiate_media_lines (fsm_fcb_t *fcb_p, cc_sdp_t *sdp_p, boolean initial
actual behavior. This really needs to be a negotiation, with the
results of the negotiation propagating into the codec configuration.
See Bug 880067. */
if (media_type == SDP_MEDIA_VIDEO) {
if (media && media_type == SDP_MEDIA_VIDEO) {
gsmsdp_set_rtcp_fb_nack_attribute(media->level, sdp_p->src_sdp,
SDP_ALL_PAYLOADS,
SDP_RTCP_FB_NACK_UNSPECIFIED);