gstutils: check uri before using it in gst_pad_create_stream_id_internal
authorMatthieu Bouron <matthieu.bouron@collabora.com>
Sat, 14 Feb 2015 11:15:03 +0000 (12:15 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Sun, 15 Feb 2015 17:35:35 +0000 (17:35 +0000)
commitee9ca5d48b9c0f0e8b5714a0d08b8915e85e8572
treec688a226d3d5efea142316c0c62244580d5bd655
parent025c8343f23eeafd4369cb557539c93127b3e526
gstutils: check uri before using it in gst_pad_create_stream_id_internal

If an element implements wrongly the URI query and set the uri to NULL and if
the element calls gst_pad_create_stream_id at some point, it will lead to crash
as the uri is not supposed to be NULL in the gst_pad_create_stream_id_internal
function.

https://bugzilla.gnome.org/show_bug.cgi?id=744520
gst/gstutils.c