mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-07 23:12:42 +00:00
validate: inherit from GstObject instead of GObject
This allow us to use to 'leaks' detector to check if those objects are leaked. Differential Revision: https://phabricator.freedesktop.org/D1232
This commit is contained in:
parent
04282bb192
commit
c8a3d6c607
12 changed files with 18 additions and 18 deletions
|
@ -40,7 +40,7 @@ typedef struct _SSimWindowCache
|
||||||
} SSimWindowCache;
|
} SSimWindowCache;
|
||||||
|
|
||||||
/* *INDENT-OFF* */
|
/* *INDENT-OFF* */
|
||||||
G_DEFINE_TYPE (Gssim, gssim, G_TYPE_OBJECT)
|
G_DEFINE_TYPE (Gssim, gssim, GST_TYPE_OBJECT)
|
||||||
/* *INDENT-ON* */
|
/* *INDENT-ON* */
|
||||||
|
|
||||||
enum
|
enum
|
||||||
|
|
|
@ -33,13 +33,13 @@ G_BEGIN_DECLS
|
||||||
typedef struct _GssimPriv GssimPriv;
|
typedef struct _GssimPriv GssimPriv;
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
GObject parent;
|
GstObject parent;
|
||||||
|
|
||||||
GssimPriv *priv;
|
GssimPriv *priv;
|
||||||
} Gssim;
|
} Gssim;
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
GObjectClass parent;
|
GstObjectClass parent;
|
||||||
} GssimClass;
|
} GssimClass;
|
||||||
|
|
||||||
#define GSSIM_TYPE (gssim_get_type ())
|
#define GSSIM_TYPE (gssim_get_type ())
|
||||||
|
|
|
@ -42,7 +42,7 @@ GST_DEBUG_CATEGORY_STATIC (GST_CAT_DEFAULT);
|
||||||
#define WRONG_FORMAT g_quark_from_static_string ("ssim::wrong-format")
|
#define WRONG_FORMAT g_quark_from_static_string ("ssim::wrong-format")
|
||||||
|
|
||||||
G_DEFINE_TYPE_WITH_CODE (GstValidateSsim, gst_validate_ssim,
|
G_DEFINE_TYPE_WITH_CODE (GstValidateSsim, gst_validate_ssim,
|
||||||
G_TYPE_OBJECT, G_IMPLEMENT_INTERFACE (GST_TYPE_VALIDATE_REPORTER, NULL));
|
GST_TYPE_OBJECT, G_IMPLEMENT_INTERFACE (GST_TYPE_VALIDATE_REPORTER, NULL));
|
||||||
|
|
||||||
enum
|
enum
|
||||||
{
|
{
|
||||||
|
|
|
@ -38,13 +38,13 @@ G_BEGIN_DECLS
|
||||||
typedef struct _GstValidateSsimPriv GstValidateSsimPriv;
|
typedef struct _GstValidateSsimPriv GstValidateSsimPriv;
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
GObject parent;
|
GstObject parent;
|
||||||
|
|
||||||
GstValidateSsimPriv *priv;
|
GstValidateSsimPriv *priv;
|
||||||
} GstValidateSsim;
|
} GstValidateSsim;
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
GObjectClass parent;
|
GstObjectClass parent;
|
||||||
} GstValidateSsimClass;
|
} GstValidateSsimClass;
|
||||||
|
|
||||||
#define GST_VALIDATE_SSIM_TYPE (gst_validate_ssim_get_type ())
|
#define GST_VALIDATE_SSIM_TYPE (gst_validate_ssim_get_type ())
|
||||||
|
|
|
@ -78,7 +78,7 @@ _reporter_iface_init (GstValidateReporterInterface * iface)
|
||||||
|
|
||||||
#define gst_validate_monitor_parent_class parent_class
|
#define gst_validate_monitor_parent_class parent_class
|
||||||
G_DEFINE_ABSTRACT_TYPE_WITH_CODE (GstValidateMonitor, gst_validate_monitor,
|
G_DEFINE_ABSTRACT_TYPE_WITH_CODE (GstValidateMonitor, gst_validate_monitor,
|
||||||
G_TYPE_OBJECT, _do_init);
|
GST_TYPE_OBJECT, _do_init);
|
||||||
|
|
||||||
static void
|
static void
|
||||||
_target_freed_cb (GstValidateMonitor * monitor, GObject * where_the_object_was)
|
_target_freed_cb (GstValidateMonitor * monitor, GObject * where_the_object_was)
|
||||||
|
|
|
@ -81,7 +81,7 @@ G_BEGIN_DECLS
|
||||||
* Class that wraps a #GObject for Validate checks
|
* Class that wraps a #GObject for Validate checks
|
||||||
*/
|
*/
|
||||||
struct _GstValidateMonitor {
|
struct _GstValidateMonitor {
|
||||||
GObject object;
|
GstObject object;
|
||||||
|
|
||||||
GstObject *target;
|
GstObject *target;
|
||||||
GMutex mutex;
|
GMutex mutex;
|
||||||
|
@ -106,7 +106,7 @@ struct _GstValidateMonitor {
|
||||||
* GStreamer Validate Monitor object class.
|
* GStreamer Validate Monitor object class.
|
||||||
*/
|
*/
|
||||||
struct _GstValidateMonitorClass {
|
struct _GstValidateMonitorClass {
|
||||||
GObjectClass parent_class;
|
GstObjectClass parent_class;
|
||||||
|
|
||||||
gboolean (* setup) (GstValidateMonitor * monitor);
|
gboolean (* setup) (GstValidateMonitor * monitor);
|
||||||
GstElement *(* get_element) (GstValidateMonitor * monitor);
|
GstElement *(* get_element) (GstValidateMonitor * monitor);
|
||||||
|
|
|
@ -42,7 +42,7 @@
|
||||||
/* *INDENT-OFF* */
|
/* *INDENT-OFF* */
|
||||||
|
|
||||||
G_DEFINE_TYPE_WITH_CODE (GstValidateOverride, gst_validate_override,
|
G_DEFINE_TYPE_WITH_CODE (GstValidateOverride, gst_validate_override,
|
||||||
G_TYPE_OBJECT, G_IMPLEMENT_INTERFACE (GST_TYPE_VALIDATE_REPORTER, NULL))
|
GST_TYPE_OBJECT, G_IMPLEMENT_INTERFACE (GST_TYPE_VALIDATE_REPORTER, NULL))
|
||||||
|
|
||||||
struct _GstValidateOverridePriv
|
struct _GstValidateOverridePriv
|
||||||
{
|
{
|
||||||
|
|
|
@ -49,7 +49,7 @@ typedef void (*GstValidateOverrideSetCapsHandler)(GstValidateOverride * override
|
||||||
struct _GstValidateOverrideClass
|
struct _GstValidateOverrideClass
|
||||||
{
|
{
|
||||||
/*<private>*/
|
/*<private>*/
|
||||||
GObjectClass parent_class;
|
GstObjectClass parent_class;
|
||||||
|
|
||||||
gboolean (*can_attach)(GstValidateOverride * override,
|
gboolean (*can_attach)(GstValidateOverride * override,
|
||||||
GstValidateMonitor * monitor);
|
GstValidateMonitor * monitor);
|
||||||
|
@ -58,7 +58,7 @@ struct _GstValidateOverrideClass
|
||||||
|
|
||||||
struct _GstValidateOverride
|
struct _GstValidateOverride
|
||||||
{
|
{
|
||||||
GObject parent;
|
GstObject parent;
|
||||||
|
|
||||||
GstValidateOverrideBufferHandler buffer_handler;
|
GstValidateOverrideBufferHandler buffer_handler;
|
||||||
GstValidateOverrideEventHandler event_handler;
|
GstValidateOverrideEventHandler event_handler;
|
||||||
|
|
|
@ -176,7 +176,7 @@ _reporter_iface_init (GstValidateReporterInterface * iface)
|
||||||
}
|
}
|
||||||
|
|
||||||
G_DEFINE_TYPE_WITH_CODE (GstValidateScenario, gst_validate_scenario,
|
G_DEFINE_TYPE_WITH_CODE (GstValidateScenario, gst_validate_scenario,
|
||||||
G_TYPE_OBJECT, G_IMPLEMENT_INTERFACE (GST_TYPE_VALIDATE_REPORTER,
|
GST_TYPE_OBJECT, G_IMPLEMENT_INTERFACE (GST_TYPE_VALIDATE_REPORTER,
|
||||||
_reporter_iface_init));
|
_reporter_iface_init));
|
||||||
|
|
||||||
/* GstValidateAction implementation */
|
/* GstValidateAction implementation */
|
||||||
|
|
|
@ -227,7 +227,7 @@ struct _GstValidateActionParameter
|
||||||
|
|
||||||
struct _GstValidateScenarioClass
|
struct _GstValidateScenarioClass
|
||||||
{
|
{
|
||||||
GObjectClass parent_class;
|
GstObjectClass parent_class;
|
||||||
|
|
||||||
/*< public >*/
|
/*< public >*/
|
||||||
/*< private >*/
|
/*< private >*/
|
||||||
|
@ -240,7 +240,7 @@ struct _GstValidateScenarioClass
|
||||||
*/
|
*/
|
||||||
struct _GstValidateScenario
|
struct _GstValidateScenario
|
||||||
{
|
{
|
||||||
GObject parent;
|
GstObject parent;
|
||||||
|
|
||||||
/*< public >*/
|
/*< public >*/
|
||||||
GstElement *pipeline;
|
GstElement *pipeline;
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
#include "media-descriptor.h"
|
#include "media-descriptor.h"
|
||||||
|
|
||||||
G_DEFINE_ABSTRACT_TYPE_WITH_CODE (GstValidateMediaDescriptor,
|
G_DEFINE_ABSTRACT_TYPE_WITH_CODE (GstValidateMediaDescriptor,
|
||||||
gst_validate_media_descriptor, G_TYPE_OBJECT,
|
gst_validate_media_descriptor, GST_TYPE_OBJECT,
|
||||||
G_IMPLEMENT_INTERFACE (GST_TYPE_VALIDATE_REPORTER, NULL));
|
G_IMPLEMENT_INTERFACE (GST_TYPE_VALIDATE_REPORTER, NULL));
|
||||||
|
|
||||||
#define GST_VALIDATE_MEDIA_DESCRIPTOR_GET_PRIVATE(o)\
|
#define GST_VALIDATE_MEDIA_DESCRIPTOR_GET_PRIVATE(o)\
|
||||||
|
|
|
@ -135,7 +135,7 @@ typedef struct _GstValidateMediaDescriptorPrivate
|
||||||
|
|
||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
GObject parent;
|
GstObject parent;
|
||||||
|
|
||||||
GstValidateMediaFileNode *filenode;
|
GstValidateMediaFileNode *filenode;
|
||||||
|
|
||||||
|
@ -146,7 +146,7 @@ typedef struct
|
||||||
|
|
||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
GObjectClass parent;
|
GstObjectClass parent;
|
||||||
|
|
||||||
} GstValidateMediaDescriptorClass;
|
} GstValidateMediaDescriptorClass;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue