Tim-Philipp Müller
f90126a62e
uri: add guard to make sure gstreamer is initialized
...
https://bugzilla.gnome.org/show_bug.cgi?id=761448
2016-02-02 10:56:35 +00:00
Florin Apostol
07902f6ab4
uri: fix behaviour for merging uris ending in .. without following /
...
https://bugzilla.gnome.org/show_bug.cgi?id=757065
2015-10-24 20:32:53 +03:00
Sebastian Dröge
3e8ef4cf5a
Update GLib dependency to 2.40.0
2015-10-02 22:18:24 +03:00
Nicolas Dufresne
48700c7791
doc: More doc warning fixes
...
So from this point, the remaining warning for libgstreamer are about
protected member not showing in the doc. This may need some discussion
with upstream gtk-doc people.
* Remove % in from of none macro
* Fixed GST_TYPE_FAGS -> GST_TYPE_FAG_SET
* Minor wording fix
* Can't link to GstUri.port, so split the .port part
2015-06-14 10:29:04 -04:00
Nicolas Dufresne
6eb58a67a9
doc: In GstUri we meant nul-terminated, not %NULL
...
%NULL refers to the pointer. I've written it this way in one
word as this is what GLib uses.
2015-06-14 09:17:21 -04:00
Nicolas Dufresne
6f2fb1e37e
doc: Fix GstUri doc typos
...
* Use &perctn; instead of reserved character %
* NULL take two L
2015-06-13 20:37:34 -04:00
Tim-Philipp Müller
935ecd85ea
uri: match return type of get_uri_type() implementation to declaration
...
https://bugzilla.gnome.org/show_bug.cgi?id=750292
2015-06-02 20:32:35 +01:00
Tim-Philipp Müller
ac8a8f90b3
docs: clarify that return value of gst_filename_to_uri() must be freed
...
https://bugzilla.gnome.org/show_bug.cgi?id=747104
2015-04-16 13:42:18 +01:00
Nicolas Dufresne
1b955c08df
uri: Silence a compiler warning
...
This is a false positive for use initialized. The variable is set and
used enclosed in the safe if condition.
2015-04-03 19:12:48 -04:00
Sebastian Dröge
40a0275298
uri: Fix indention
2015-01-22 23:10:06 +02:00
David Waring
ab9b66e6be
uri: Fix parsing issues
...
Make host IPs in square brackets store only the IP, i.e. strip the brackets.
Strip leading whitespace characters in URIs.
Fail parsing when host part does not match any valid formats from RFC3986.
https://bugzilla.gnome.org/show_bug.cgi?id=743195
2015-01-22 22:08:00 +01:00
Sebastian Dröge
83905c9937
uri: Fix gobject-introspection warnings
...
gsturi.c:997: Error: Gst: Skipping invalid GTK-Doc comment block:
/** private GstUri functions **/
^
gsturi.c:1179: Error: Gst: Skipping invalid GTK-Doc comment block:
/** RFC 3986 functions **/
^
2014-11-07 10:57:14 +01:00
Sebastian Dröge
2b6298ebc5
uri: Don't unconditionally use g_list_copy_deep()
...
We don't depend on GLib 2.34 yet and just for this seems a bit useless.
https://bugzilla.gnome.org/show_bug.cgi?id=737584
2014-09-29 17:48:29 +03:00
Sebastian Dröge
55c7656a03
uri: Include our own BSD licensed copy of strcasestr() for Windows and others
2014-09-29 16:22:47 +03:00
Sebastian Dröge
932d9c1657
uri: Fix compiler warnings with gcc
...
These are actually not true.
gsturi.c: In function '_gst_uri_string_to_table.constprop':
gsturi.c:1316:27: error: 'pct_kv_sep' may be used uninitialized in this function [-Werror=maybe-uninitialized]
for (next_sep = strcasestr (value, pct_kv_sep); next_sep;
^
gsturi.c:1283:24: error: 'pct_part_sep' may be used uninitialized in this function [-Werror=maybe-uninitialized]
next_sep = strcasestr (next_sep + 1, pct_part_sep)) {
^
2014-09-29 15:54:37 +03:00
Sebastian Dröge
b9bf5d5ff2
uri: Fix memory leak in gst_uri_join()
...
The merged path segments are a deep-copied list and we need to free the
contained strings too instead of just the list nodes themselves.
2014-09-29 12:19:35 +03:00
David Waring
54c5f1855c
GstUri: Add GstUri miniobject to handle URIs in an RFC 3986 compliant fashion
...
https://bugzilla.gnome.org/show_bug.cgi?id=725221
2014-09-29 12:19:05 +03:00
Ravi Kiran K N
7a93e6b005
gsturi: Remove unnecessary code
...
gst_uri_handler_set_uri() function has new_uri, location and colon
are not necessary, they can be removed.
https://bugzilla.gnome.org/show_bug.cgi?id=736877
2014-09-19 10:42:03 +01:00
Evan Nemerson
2759882379
introspection: add missing (nullable) annotations to return values
...
Support for (nullable) was added to G-I at the same time as nullable
return values. Previous versions of G-I will not mark return values as
nullable, even when an (allow-none) annotation is present, so it is
not necessary to add (allow-none) annotations for compatibility with
older versions of G-I.
https://bugzilla.gnome.org/show_bug.cgi?id=730957
2014-06-26 18:56:38 +02:00
Evan Nemerson
e10266e3f3
docs: convert NULL, TRUE, and FALSE to %NULL, %TRUE, and %FALSE
...
This should help improve documentation generated for
languages other than C.
https://bugzilla.gnome.org/show_bug.cgi?id=730961
2014-05-30 00:20:27 +01:00
Tim-Philipp Müller
6eb6d9ec38
docs: remove outdated and pointless 'Last reviewed' lines from docs
...
They are very confusing for people, and more often than not
also just not very accurate. Seeing 'last reviewed: 2005' in
your docs is not very confidence-inspiring. Let's just remove
those comments.
2014-04-26 21:21:51 +01:00
Tim-Philipp Müller
4afa63a8ba
gst: g_memmove() is deprecated
...
Just use plain memmove(), g_memmove() is deprecated in
recent GLib versions.
https://bugzilla.gnome.org/show_bug.cgi?id=712811
2013-11-21 15:04:04 +00:00
Tim-Philipp Müller
666c8c11c6
Fix FSF address
...
https://bugzilla.gnome.org/show_bug.cgi?id=687520
2012-11-03 20:44:48 +00:00
Mark Nauwelaerts
5e928fa56e
uri: use proper 'transfer floating' annotation
...
https://bugzilla.gnome.org/show_bug.cgi?id=664099
2012-09-26 14:15:01 +02:00
Thibault Saunier
4a2b138f52
uri: Fix wrong 'array zero-terminated=1' annotation for strings
2012-07-28 21:34:41 -04:00
Edward Hervey
d3ffa82639
Remove 0.10-related documentation and "Since" markers
2012-07-10 12:03:27 +02:00
Tim-Philipp Müller
3329f3f4e4
uri: there are valid URI protocols with only two letters, like fd://
...
We added a minimum length of three letters originally so we would
fail to recognise DOS/Windows-style filenames as valid URIs (as we
should). Two should be just fine as well.
2012-07-04 17:39:52 +01:00
Tim-Philipp Müller
f8445bd293
uri: add error argument to gst_element_make_from_uri()
...
So callers can differentiate between there not being a
handler for the protocol, and them not accepting the URI
for some reason.
https://bugzilla.gnome.org/show_bug.cgi?id=645467
2012-06-23 14:43:17 +01:00
Edward Hervey
07a888f174
uri: Add some debug statements
2012-05-23 09:39:16 +02:00
Tim-Philipp Müller
d35487e50c
uri: require URI protocol bit to be at least 3 characters to be valid
...
We want to return FALSE when run on a windows-style file path.
https://bugzilla.gnome.org/show_bug.cgi?id=674296
2012-05-01 19:50:36 +01:00
Wim Taymans
ce67b0e539
docs: update more documentation
2012-03-29 13:34:50 +02:00
Sebastian Dröge
cfe71423f0
gst: Remove gstmarshal.[ch] completely and use the generic marshaller
...
Fixes bug #671130 .
2012-03-02 11:05:48 +01:00
Tim-Philipp Müller
ed80a5cd4b
registry: rename gst_registry_get_default() to gst_registry_get()
...
It's not really a default if there is only one that can't be changed.
Should we return a ref like e.g. g_volume_monitor_get() does?
2012-01-02 02:22:51 +00:00
Tim-Philipp Müller
df20630d78
urihandler: fix return type of get_protocols()
2011-11-13 23:07:58 +00:00
Tim-Philipp Müller
682704750c
urihandler: pass GError argument to gst_uri_handler_set_uri()
...
Also let gst_uri_handler_set_uri check already if the protocol
is supported, so that not every uri handler has to do that
itself.
2011-11-13 18:04:55 +00:00
Tim-Philipp Müller
35df64357f
urihandler: make _get_uri() return a copy
...
For thread-safety.
2011-11-13 15:51:44 +00:00
Tim-Philipp Müller
34e3e26467
urihandler: remove "new-uri" signal
...
No one but filesrc used that API. Should probably be replaced by
requiring an "uri" property instead, and then objects can do a
notify on that. Also removed interface structure padding, it's
not needed.
2011-11-13 15:37:40 +00:00
Wim Taymans
b322a401c7
uri: remove some _full variants
2011-06-22 16:38:04 +02:00
Javier Jardón
5d25e4a204
Use "const" instead G_CONST_RETURN
...
G_CONST_RETURN will be deprecated soon.
https://bugzilla.gnome.org/show_bug.cgi?id=652211
2011-06-09 17:54:27 +01:00
Tim-Philipp Müller
d3e7981527
uri: make win32 buildbot happy
...
gsturi.c:854:16: error: unused variable 'abs_clean'
gsturi.c:788:1: error: 'gst_file_utils_canonicalise_path' defined but not used
2011-02-24 17:12:00 +00:00
Tim-Philipp Müller
27027a2dd2
uri: add gst_filename_to_uri() that takes relative filenames
...
Add function that (unlike the GLib equivalent) also accepts paths that
aren't absolute and will clean up relative markers such as ./ and ../
before forming a URI.
Fixes warnings with e.g. filesrc location=foo ! typefind caused by the
recent switch to g_filename_to_uri(), but also actually creates valid
URIs for the first time.
Windows code paths could need some more work, e.g. we don't clean up
the relative markers there for now (because path could have \ and /
as separators).
API: gst_filename_to_uri()
2011-02-24 15:36:52 +00:00
Tim-Philipp Müller
3256c708be
docs: gst: more gobject introspection annotations
...
Many of these are superfluous, added for clarity.
2010-12-07 18:37:04 +00:00
Edward Hervey
1d91fd9fb9
gsturi: Don't use g_signal_emit_by_name, use the signal ID directly
2009-12-07 09:51:03 +01:00
Edward Hervey
517ab2860e
gsturi: Optimisation: Avoid type-checking in sorting method.
...
We already know the list only contains plugin features
2009-10-22 13:16:07 +02:00
Edward Hervey
a9ed7c0ec4
gsturi: Optimisation : Cast when we're sure of the type.
...
Also directly access GstElementFactory->uri_type instead of going
through a function that will (once again) check whether it's a
GstElementFactory
2009-10-22 13:13:56 +02:00
Tim-Philipp Müller
998b2392d3
Remove double semicolons at end of line
2009-06-08 17:13:17 +01:00
Sebastian Dröge
c003165b76
GstURIHandler: Use get_type_full() vmethod if specified instead of get_type()
...
This fixes bug #581281 and makes it easier for bindings to
implement GstURIHandlers. get_protocols_full() was already used
like this.
2009-05-12 09:02:44 +02:00
Sebastian Dröge
e7ccf786c3
gst: Use G_DEFINE_TYPE and friends or at least g_once_init_* in the _get_type() functions
2009-04-04 10:20:36 +02:00
Edward Hervey
971755842d
Remove unused increments as detect by LLVM's CLang static analyzer.
2009-04-03 12:56:57 +02:00
Stefan Kost
4eebee56fd
gst/gsturi.c: Don't segfault on input like "tel:+1-123-555-1234".
...
Original commit message from CVS:
* gst/gsturi.c:
Don't segfault on input like "tel:+1-123-555-1234".
2008-08-28 10:45:04 +00:00