mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 03:35:21 +00:00
v4l2codecs: fix v4l2codecdevice get type
Currently the GType of v4l2codecdevice is hardcoded to zero, but it rather should be delivered by the GType system.
This commit is contained in:
parent
87fc038f67
commit
691fdb85c0
2 changed files with 2 additions and 4 deletions
|
@ -31,8 +31,6 @@
|
||||||
#define GST_CAT_DEFAULT gstv4l2codecs_debug
|
#define GST_CAT_DEFAULT gstv4l2codecs_debug
|
||||||
GST_DEBUG_CATEGORY_EXTERN (gstv4l2codecs_debug);
|
GST_DEBUG_CATEGORY_EXTERN (gstv4l2codecs_debug);
|
||||||
|
|
||||||
GType _gst_v4l2_codec_device_type = 0;
|
|
||||||
|
|
||||||
GST_DEFINE_MINI_OBJECT_TYPE (GstV4l2CodecDevice, gst_v4l2_codec_device);
|
GST_DEFINE_MINI_OBJECT_TYPE (GstV4l2CodecDevice, gst_v4l2_codec_device);
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
@ -51,7 +49,7 @@ gst_v4l2_codec_device_new (const gchar * name, guint32 function,
|
||||||
GstV4l2CodecDevice *device = g_new0 (GstV4l2CodecDevice, 1);
|
GstV4l2CodecDevice *device = g_new0 (GstV4l2CodecDevice, 1);
|
||||||
|
|
||||||
gst_mini_object_init (GST_MINI_OBJECT_CAST (device),
|
gst_mini_object_init (GST_MINI_OBJECT_CAST (device),
|
||||||
0, _gst_v4l2_codec_device_type, NULL, NULL,
|
0, GST_TYPE_V4L2_CODEC_DEVICE, NULL, NULL,
|
||||||
(GstMiniObjectFreeFunction) gst_v4l2_codec_device_free);
|
(GstMiniObjectFreeFunction) gst_v4l2_codec_device_free);
|
||||||
|
|
||||||
device->name = g_strdup (name);
|
device->name = g_strdup (name);
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
|
|
||||||
#include <gst/gst.h>
|
#include <gst/gst.h>
|
||||||
|
|
||||||
#define GST_TYPE_V4L2_CODEC_DEVICE (_gst_v4l2_codec_device_type)
|
#define GST_TYPE_V4L2_CODEC_DEVICE (gst_v4l2_codec_device_get_type())
|
||||||
#define GST_IS_V4L2_CODEC_DEVICE(obj) (GST_IS_MINI_OBJECT_TYPE(obj, GST_TYPE_V4L2_CODEC_DEVICE))
|
#define GST_IS_V4L2_CODEC_DEVICE(obj) (GST_IS_MINI_OBJECT_TYPE(obj, GST_TYPE_V4L2_CODEC_DEVICE))
|
||||||
#define GST_V4L2_CODEC_DEVICE(obj) ((GstV4l2CodecDevice *)(obj))
|
#define GST_V4L2_CODEC_DEVICE(obj) ((GstV4l2CodecDevice *)(obj))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue