/**
* SECTION:gstdevice
+ * @title: GstDevice
* @short_description: Object representing a device
* @see_also: #GstDeviceProvider
*
static guint signals[LAST_SIGNAL];
-G_DEFINE_ABSTRACT_TYPE (GstDevice, gst_device, GST_TYPE_OBJECT);
+G_DEFINE_ABSTRACT_TYPE_WITH_PRIVATE (GstDevice, gst_device, GST_TYPE_OBJECT);
static void gst_device_get_property (GObject * object, guint property_id,
GValue * value, GParamSpec * pspec);
{
GObjectClass *object_class = G_OBJECT_CLASS (klass);
- g_type_class_add_private (klass, sizeof (GstDevicePrivate));
-
object_class->get_property = gst_device_get_property;
object_class->set_property = gst_device_set_property;
object_class->finalize = gst_device_finalize;
static void
gst_device_init (GstDevice * device)
{
- device->priv = G_TYPE_INSTANCE_GET_PRIVATE (device, GST_TYPE_DEVICE,
- GstDevicePrivate);
+ device->priv = gst_device_get_instance_private (device);
}
static void
* Creates the element with all of the required parameters set to use
* this device.
*
- * Returns: (transfer full): a new #GstElement configured to use this device
+ * Returns: (transfer full) (nullable): a new #GstElement configured to use
+ * this device
*
* Since: 1.4
*/
*
* Getter for the #GstCaps that this device supports.
*
- * Returns: The #GstCaps supported by this device. Unref with
+ * Returns: (nullable): The #GstCaps supported by this device. Unref with
* gst_caps_unref() when done.
*
* Since: 1.4
*
* Gets the extra properties of a device.
*
- * Returns: The extra properties or %NULL when there are none.
+ * Returns: (nullable): The extra properties or %NULL when there are none.
* Free with gst_structure_free() after use.
*
* Since: 1.6