mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 15:51:11 +00:00
gstindex: Make sure writer is non-NULL.
Fixes the NULL dereference a few lines lower (where it gets the object type).
This commit is contained in:
parent
fff8656af3
commit
219c3c5236
1 changed files with 2 additions and 0 deletions
|
@ -616,6 +616,8 @@ static gboolean
|
|||
gst_index_gtype_resolver (GstIndex * index, GstObject * writer,
|
||||
gchar ** writer_string, gpointer data)
|
||||
{
|
||||
g_return_val_if_fail (writer != NULL, FALSE);
|
||||
|
||||
if (GST_IS_PAD (writer)) {
|
||||
GstElement *element =
|
||||
(GstElement *) gst_object_get_parent (GST_OBJECT (writer));
|
||||
|
|
Loading…
Reference in a new issue