Commit 09f47d18 authored by Wim Taymans's avatar Wim Taymans
Browse files

gst/gstregistryxml.c: Avoid strdup. (will happen in libxml, but hey!)

Original commit message from CVS:
* gst/gstregistryxml.c: (read_string):
Avoid strdup. (will happen in libxml, but hey!)
* gst/gsturi.c:
Add some more docs.
parent fa9bb792
2006-07-05 Wim Taymans <wim@fluendo.com>
* gst/gstregistryxml.c: (read_string):
Avoid strdup. (will happen in libxml, but hey!)
* gst/gsturi.c:
Add some more docs.
2006-07-05 Wim Taymans <wim@fluendo.com>
* gst/gstbuffer.c: (_gst_buffer_copy), (gst_buffer_create_sub):
......
......@@ -125,7 +125,7 @@ read_string (xmlTextReaderPtr reader, gchar ** write_to, gboolean allow_blank)
if (xmlTextReaderNodeType (reader) == XML_READER_TYPE_TEXT) {
if (found)
return FALSE;
*write_to = g_strdup ((gchar *) xmlTextReaderConstValue (reader));
*write_to = (gchar *) xmlTextReaderValue (reader);
found = TRUE;
}
}
......
......@@ -609,8 +609,9 @@ gst_uri_handler_get_protocols (GstURIHandler * handler)
*
* Gets the currently handled URI.
*
* Returns: the URI currently handler by the @handler.
* Returns NULL if there are no URI currently handled.
* Returns: the URI currently handled by the @handler.
* Returns NULL if there are no URI currently handled. The returned
* string must not be modified or freed.
*/
G_CONST_RETURN gchar *
gst_uri_handler_get_uri (GstURIHandler * handler)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment