+2007-02-14 Wim Taymans <wim@fluendo.com>
+
+ * gst/rtsp/sdpmessage.c: (sdp_parse_line):
+ As spotted by: Peter Kjellerstedt <pkj at axis com>:
+ Clear stack allocated SDPMedia struct before calling _init() on it.
+ Clarify this in the docs as well.
+
2007-02-14 Jan Schmidt <thaytan@mad.scientist.com>
* ext/gconf/gstgconfaudiosink.c: (gst_gconf_audio_sink_reset),
* with sdp_message_new(). This function is mostly used to initialize a message
* allocated on the stack. sdp_message_uninit() undoes this operation.
*
+ * When this function is invoked on newly allocated data (with malloc or on the
+ * stack), its contents should be set to 0 before calling this function.
+ *
* Returns: a #RTSPResult.
*/
RTSPResult
* with sdp_media_new(). This function is mostly used to initialize a media
* allocated on the stack. sdp_media_uninit() undoes this operation.
*
+ * When this function is invoked on newly allocated data (with malloc or on the
+ * stack), its contents should be set to 0 before calling this function.
+ *
* Returns: a #RTSPResult.
*/
RTSPResult
SDPMedia nmedia;
c->state = SDP_MEDIA;
+ memset (&nmedia, 0, sizeof (nmedia));
sdp_media_init (&nmedia);
READ_STRING (nmedia.media);