| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
| |
When using grilo as a subproject we don't have access to the pkg-config
variables. This means any attempt at checking if grilo was built against
libsoup3 or libsoup2.4 will fail when using grilo as a subproject.
Fixes: 34d3c58 ("build: Allow building grilo as a Meson subproject")
|
|
|
|
|
|
|
|
| |
There's no need for us to define variables for prefixes, exec prefixes,
and datarootdirs.
Meson already fills out the prefix, bindir, libdir, and datadir
variables with appropriate values that can be expanded and overridden.
|
|
|
|
| |
Long overdue. Bye GSimpleAsyncResult.
|
|
|
|
|
| |
We needed to change the runtime behaviour when compiled against libsoup3
to avoid an API/ABI change.
|
|
|
|
|
|
|
|
| |
Add 'soup3' build option to make it easier to build the grl-net library
against either libsoup 2.x or libsoup 3.x. The API version used is
exported in the soupapiversion variable of the pkg-config file.
Based on work by Daniel Kolesa <dkolesa@igalia.com>
|
|
|
|
|
| |
libsoup3 doesn't return a partial response on failure like libsoup2 used
to do, so remove that from the error parsing.
|
| |
|
| |
|
|
|
|
| |
This will be used in the soup3 port.
|
|
|
|
| |
So we don't rely on a SoupSession keeping it.
|
|
|
|
|
| |
The mock backend just manipulates URIs, so require a newer version of
GLib and use GUri to parse those instead of SoupURI.
|
|
|
|
|
|
| |
grl_net_wc_request_finish() claims to have a "transfer full" content
argument but it actually returns a pointer to a variable inside the
GrlNetWc object, leading to possible double-frees.
|
|
|
|
|
|
|
|
|
|
|
| |
The default SoupSessionAsync behaviour does not perform any TLS certificate
validation, unless the ssl-use-system-ca-file property is set to true.
See https://blogs.gnome.org/mcatanzaro/2021/05/25/reminder-soupsessionsync-and-soupsessionasync-default-to-no-tls-certificate-verification/
This mitigates CVE-2016-20011.
Closes: #146
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Found with -Wformat :
In file included from ../src/grilo.h:31,
from ../libs/net/grl-net-wc.c:52:
../libs/net/grl-net-wc.c: In function 'get_url':
../libs/net/grl-net-wc.c:770:16: warning: format '%lu' expects argument
of type 'long unsigned int', but argument 5 has type 'gint64' {aka
'long long int'} [-Wformat=]
770 | GRL_DEBUG ("delaying web request by %lu seconds",
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
771 | priv->last_request - now);
| ~~~~~~~~~~~~~~~~~~~~~~~~
| |
| gint64 {aka long long int}
|
|
|
|
|
|
|
|
| |
Removes the following warning:
> ../libs/pls/grl-pls.c:50:27: warning: extra tokens at end of #ifndef
> directive
> 50 | #ifndef TOTEM_PL_IS_PARSER(x)
> | ^
|
|
|
|
|
|
| |
On 2.62.0 we can use new API and avoid GTimeVal usage in grl-pls.c. As
2.62 is a bit new, wrap the old code to avoid warnings on new builds.
It can be removed after bumping glib to >= 2.62.0
|
|
|
|
|
| |
We can easily replace it with timestamp in seconds for the throttling
feature.
|
| |
|
|
|
|
|
|
|
| |
This enables the library to be used when Grilo is embedded as a Meson
subproject.
See: https://gitlab.gnome.org/GNOME/grilo-plugins/merge_requests/68
|
|
|
|
|
|
|
|
|
|
|
| |
Recently, we started prefixing the values of all variables defined in pc files
with `prefix` meson variable. While this works even when `datadir` option is
absolute (supported by some meson forks), it leads to inflexible pc files even
when prefixing is not strictly necessary.
In this commit, we are constructing variables for pkg-config files separately
from paths used for installation, obtaining nice .pc files in the common case,
while still supporting unusual platforms like Nix.
|
|
|
|
|
|
|
| |
The generated .pc have been kept essentially identical
to the original ones with the same variables.
To squash warnings the meson_version was also bumped
|
|
|
|
|
|
| |
There's really no need to get both G_FILE_ATTRIBUTE_THUMBNAILING_FAILED
and G_FILE_ATTRIBUTE_THUMBNAIL_IS_VALID as they're generated from a
single variable in GIO.
|
|
|
|
|
|
|
|
|
|
| |
Test builds were missing in meson. Building and running with a 10s
timeout (instead of 30s as default).
Also created a include_directory for GrlNet library to be included in
tests.
Signed-off-by: Victor Toso <victortoso@gnome.org>
|
| |
|
|
|
|
|
| |
Similar to previous commit but for the libs. Only the net library uses
g_type_class_add_private().
|
|
|
|
|
|
| |
To support g_autoptr, it is added.
https://gitlab.gnome.org/GNOME/grilo/merge_requests/10
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=778612
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=775950
|
|
|
|
|
|
|
| |
When getting a "Gateway timeout" error, or any other errors not handled
in the switch statement, we should make sure to return an error.
https://bugzilla.gnome.org/show_bug.cgi?id=773422
|
|
|
|
|
|
| |
And don't mark debug strings as translatable.
https://bugzilla.gnome.org/show_bug.cgi?id=773422
|
|
|
|
|
|
|
| |
Otherwise, we might add several 0 seconds delay on multiple fetch
requests leading to unexpected behavior (assertion)
https://bugzilla.gnome.org/show_bug.cgi?id=771338
|
|
|
|
|
|
|
| |
The last_request variable was never initialized leading to delay
between request to not work.
https://bugzilla.gnome.org/show_bug.cgi?id=769331
|
|
|
|
|
|
| |
Bindings are broken without this.
https://bugzilla.gnome.org/show_bug.cgi?id=769830
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=764077
|
|
|
|
|
|
|
| |
By deprecating GRL_NET_WC_ERROR_CANCELLED we can use
G_IO_ERROR_CANCELLED instead.
https://bugzilla.gnome.org/show_bug.cgi?id=764077
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=764077
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=764077
|
|
|
|
|
| |
Now we'll print the path of the missing file, instead of a glib message
about it.
|
|
|
|
|
|
|
|
|
| |
Get rid of GrlMediaBox and use instead GrlMedia.
Also, all references to "box" are converted to "container", as container is a
more suitable name than boxes.
https://bugzilla.gnome.org/show_bug.cgi?id=755551
|
|
|
|
|
|
| |
Get rid of GrlMediaAudio and use instead GrlMedia.
https://bugzilla.gnome.org/show_bug.cgi?id=755551
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=755433
|
|
|
|
| |
Was released 2.5 years ago.
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=748455
|
|
|
|
|
|
|
|
|
|
| |
make distcheck was failing on my end, because it sets a prefix
which has to be taken into account, this fixes that issue
as shown in the example in:
/usr/share/gobject-introspection-1.0/Makefile.introspection
https://bugzilla.gnome.org/show_bug.cgi?id=749587
|
|
|
|
|
|
|
|
|
|
| |
From coverity:
libs/pls/grl-pls.c:624: var_deref_op: Dereferencing null pointer "valid_entries".
valid_entries can be NULL, so check its value before using it in the
debug output.
https://bugzilla.gnome.org/show_bug.cgi?id=749887
|
|
|
|
| |
But no need to recompile grilo to support newer versions.
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=744168
|
|
|
|
|
|
|
| |
And add the associated functions as well. Deprecate the old
functions.
https://bugzilla.gnome.org/show_bug.cgi?id=724308
|
|
|
|
|
|
| |
Check if object is non-NULL before increasing its reference count.
Fixes e823b8fe63846a9c60ebd59a8bf07e9c602a8528.
|
|
|
|
|
|
| |
Annotate out arguments and the memory ownership.
https://bugzilla.gnome.org/show_bug.cgi?id=740186
|