gst: uri query: fix inconsistent `uri` nullability assertion
authorFrançois Laignel <fengalin@free.fr>
Fri, 21 Oct 2022 09:47:11 +0000 (11:47 +0200)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Fri, 21 Oct 2022 15:05:48 +0000 (15:05 +0000)
commita5f3ccc0376d385de6cf6ab79308f7d346a3d55a
treeded6f6d0755779de763854f2f9f3d3f1549750ca
parent426535f3a6dccb8d08b98571ac4a8414b0540a38
gst: uri query: fix inconsistent `uri` nullability  assertion

Functions `gst_query_set_uri` and `gst_query_set_uri_redirection`
can both set a `NULL` `uri`, as annotated in the documentation.
However the functions bodies reject `NULL` `uri`s.

See [1] for a discussion on that matter.

[1]: https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1134#note_1600988

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3237>
subprojects/gstreamer/gst/gstquery.c