mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 03:35:21 +00:00
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:
parent
fa9bb7929e
commit
09f47d182f
3 changed files with 12 additions and 3 deletions
|
@ -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>
|
2006-07-05 Wim Taymans <wim@fluendo.com>
|
||||||
|
|
||||||
* gst/gstbuffer.c: (_gst_buffer_copy), (gst_buffer_create_sub):
|
* 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 (xmlTextReaderNodeType (reader) == XML_READER_TYPE_TEXT) {
|
||||||
if (found)
|
if (found)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
*write_to = g_strdup ((gchar *) xmlTextReaderConstValue (reader));
|
*write_to = (gchar *) xmlTextReaderValue (reader);
|
||||||
found = TRUE;
|
found = TRUE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -609,8 +609,9 @@ gst_uri_handler_get_protocols (GstURIHandler * handler)
|
||||||
*
|
*
|
||||||
* Gets the currently handled URI.
|
* Gets the currently handled URI.
|
||||||
*
|
*
|
||||||
* Returns: the URI currently handler by the @handler.
|
* Returns: the URI currently handled by the @handler.
|
||||||
* Returns NULL if there are no URI currently handled.
|
* Returns NULL if there are no URI currently handled. The returned
|
||||||
|
* string must not be modified or freed.
|
||||||
*/
|
*/
|
||||||
G_CONST_RETURN gchar *
|
G_CONST_RETURN gchar *
|
||||||
gst_uri_handler_get_uri (GstURIHandler * handler)
|
gst_uri_handler_get_uri (GstURIHandler * handler)
|
||||||
|
|
Loading…
Reference in a new issue