gsturi: Don't treat invalid format of uri as critical error
authorZhao, Gang <gang.zhao.42@gmail.com>
Sun, 9 May 2021 03:13:48 +0000 (11:13 +0800)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Mon, 26 Jul 2021 11:37:33 +0000 (11:37 +0000)
commited92fb2430364bd7b9660cf83d32aae00a3ee899
treee48265d3b4cf1a38a0a0cb3b232c0a83f574ff5d
parentadd1f17c57a68e02a34765a4dd2312fbba8af333
gsturi: Don't treat invalid format of uri as critical error

Normally uri is get from user input and invalid user input should not
be treated as critical error. Moved gst_uri_is_valid outside of
g_return_val_if_fail.

NULL uri is checked inside of gst_uri_is_valid and is correctly
treated as critical error, removed unneeded checks of NULL uri outside
of gst_uri_is_valid function.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/816>
gst/gsturi.c