sdp: use setter for the bandwidth

This commit is contained in:
Wim Taymans 2013-04-26 10:10:41 +02:00
parent f7e879aa18
commit b708c85535

View file

@ -1180,9 +1180,7 @@ gst_sdp_message_add_bandwidth (GstSDPMessage * msg, const gchar * bwtype,
{
GstSDPBandwidth bw;
bw.bwtype = g_strdup (bwtype);
bw.bandwidth = bandwidth;
gst_sdp_bandwidth_set (&bw, bwtype, bandwidth);
return gst_sdp_message_insert_bandwidth (msg, -1, &bw);
}