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.
This commit is contained in:
Wim Taymans 2006-07-05 18:17:01 +00:00
parent fa9bb7929e
commit 09f47d182f
3 changed files with 12 additions and 3 deletions

View file

@ -1,3 +1,11 @@
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):

View file

@ -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;
}
}

View file

@ -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)