Commit 7a2d32ab authored by Thibault Saunier's avatar Thibault Saunier

multiqueue: Fix possible NULL pointer dereferencing

In the hotdoc inspector for example, pads are instantiated with
g_object_new, other code paths to get/set properties already make
that check.

And update doc cache
parent e5a3f12f
Pipeline #46239 passed with stages
in 34 minutes and 40 seconds
......@@ -2017,6 +2017,27 @@
"src_%%u": {
"caps": "ANY",
"direction": "src",
"object-type": {
"hierarchy": [
"GstMultiQueuePad",
"GstPad",
"GstObject",
"GInitiallyUnowned",
"GObject"
],
"properties": {
"group-id": {
"blurb": "Group to which this pad belongs",
"construct": false,
"construct-only": false,
"default": "0",
"max": "-1",
"min": "0",
"type-name": "guint",
"writable": true
}
}
},
"presence": "sometimes"
}
},
......
......@@ -394,7 +394,8 @@ gst_multiqueue_pad_finalize (GObject * object)
{
GstMultiQueuePad *pad = GST_MULTIQUEUE_PAD (object);
gst_single_queue_unref (pad->sq);
if (pad->sq)
gst_single_queue_unref (pad->sq);
G_OBJECT_CLASS (gst_multiqueue_pad_parent_class)->finalize (object);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment