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
"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"
}
},
{
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);
}