Justin Kim
d100180ce3
sdpmessage: do not append NULL value for session-level attr
...
If an attribute is defined without value, the generated text
should be 'a=key' rather than 'a=key:'. For media-level, it
has already been done.
https://bugzilla.gnome.org/show_bug.cgi?id=789742
2017-11-01 17:09:47 +11:00
Matthew Waters
0dcab96d88
sdp/media: caps_from_media() don't modify the input media
...
Performing a gst_sdp_media_get_caps_from_media() would result in
changing fields in the GstSDPMedia violating the const tag in the
function declaration.
Before there would be a line with a=rtpmap:96 VP8/90000
after, that attribute would only contain a=rtpmap:96
Fix by performing modifications on duplicated strings instead of on
the internal values.
Also add a simple test for checking that the representation doesn't
change by a gst_sdp_media_get_caps_from_media()
2017-04-03 16:49:12 +10:00
Tim-Philipp Müller
bbed5a5ffc
Fix indentation
2017-01-09 19:02:57 +00:00
Tomasz Zajac
028b16bb67
sdp: Add tests for rtcp-fb parsing
...
https://bugzilla.gnome.org/show_bug.cgi?id=769698
2016-11-01 19:57:10 +02:00
Hyunjun Ko
682b523652
sdp: add helper fuctions from/to sdp from/to caps
...
<gstsdpmessage.h>
GstCaps* gst_sdp_media_get_caps_from_media (const GstSDPMedia *media, gint pt);
GstSDPResult gst_sdp_media_set_media_from_caps (const GstCaps* caps, GstSDPMedia *media);
gchar * gst_sdp_make_keymgmt (const gchar *uri, const gchar *base64);
GstSDPResult gst_sdp_message_attributes_to_caps (GstSDPMessage *msg, GstCaps *caps);
GstSDPResult gst_sdp_media_attributes_to_caps (GstSDPMedia *media, GstCaps *caps);
<gstmikey.h>
GstMIKEYMessage * gst_mikey_message_new_from_caps (GstCaps *caps);
gchar * gst_mikey_message_base64_encode (GstMIKEYMessage* msg);
https://bugzilla.gnome.org/show_bug.cgi?id=745880
2015-12-31 17:11:57 +02:00
Patricia Muscalu
b9933dd6a3
tests: add SDP modify test
...
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=698558
2013-04-24 14:13:43 +02:00
Wim Taymans
1bf3176e26
tests: avoid sdp boxed test leak
2013-04-24 14:12:41 +02:00
Jose Antonio Santos Cadenas
ba1e693853
sdp: add boxed type for GstSDPMessage
...
Also added some tests of this improvement.
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=697808
2013-04-15 14:27:47 +02:00