gsturi: Set GError if uri is invalid
authorZhao, Gang <gang.zhao.42@gmail.com>
Sun, 9 May 2021 03:45:49 +0000 (11:45 +0800)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Mon, 26 Jul 2021 11:37:33 +0000 (11:37 +0000)
commit2936448f1a366c8404dd071a7c8ef520e5ab722c
treeffe422e9086382c3a7ef92b5e70b30297cbd7f0c
parented92fb2430364bd7b9660cf83d32aae00a3ee899
gsturi: Set GError if uri is invalid

GError should be set if function call failed and the failed reason is
not a programmer error.

Fixed: https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/issues/1380
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/816>
gst/gsturi.c