mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-31 03:29:50 +00:00
Use G_DEFINE_TYPE_WITH_PRIVATE if applicable
This gets rid of the strange `do_init` macro and makes the intent a bit more clear.
This commit is contained in:
parent
2b016fdde9
commit
e73e69a480
3 changed files with 6 additions and 15 deletions
|
@ -41,11 +41,8 @@
|
||||||
#define DEBUG_VAAPI_DISPLAY 1
|
#define DEBUG_VAAPI_DISPLAY 1
|
||||||
#include "gstvaapidebug.h"
|
#include "gstvaapidebug.h"
|
||||||
|
|
||||||
#define _do_init \
|
G_DEFINE_TYPE_WITH_PRIVATE (GstVaapiDisplayDRM, gst_vaapi_display_drm,
|
||||||
G_ADD_PRIVATE (GstVaapiDisplayDRM);
|
GST_TYPE_VAAPI_DISPLAY);
|
||||||
|
|
||||||
G_DEFINE_TYPE_WITH_CODE (GstVaapiDisplayDRM, gst_vaapi_display_drm,
|
|
||||||
GST_TYPE_VAAPI_DISPLAY, _do_init);
|
|
||||||
|
|
||||||
typedef enum
|
typedef enum
|
||||||
{
|
{
|
||||||
|
|
|
@ -35,11 +35,8 @@
|
||||||
#define DEBUG_VAAPI_DISPLAY 1
|
#define DEBUG_VAAPI_DISPLAY 1
|
||||||
#include "gstvaapidebug.h"
|
#include "gstvaapidebug.h"
|
||||||
|
|
||||||
#define _do_init \
|
G_DEFINE_TYPE_WITH_PRIVATE (GstVaapiDisplayWayland, gst_vaapi_display_wayland,
|
||||||
G_ADD_PRIVATE (GstVaapiDisplayWayland);
|
GST_TYPE_VAAPI_DISPLAY);
|
||||||
|
|
||||||
G_DEFINE_TYPE_WITH_CODE (GstVaapiDisplayWayland, gst_vaapi_display_wayland,
|
|
||||||
GST_TYPE_VAAPI_DISPLAY, _do_init);
|
|
||||||
|
|
||||||
static inline const gchar *
|
static inline const gchar *
|
||||||
get_default_display_name (void)
|
get_default_display_name (void)
|
||||||
|
|
|
@ -45,11 +45,8 @@
|
||||||
#define DEBUG_VAAPI_DISPLAY 1
|
#define DEBUG_VAAPI_DISPLAY 1
|
||||||
#include "gstvaapidebug.h"
|
#include "gstvaapidebug.h"
|
||||||
|
|
||||||
#define _do_init \
|
G_DEFINE_TYPE_WITH_PRIVATE (GstVaapiDisplayX11, gst_vaapi_display_x11,
|
||||||
G_ADD_PRIVATE (GstVaapiDisplayX11);
|
GST_TYPE_VAAPI_DISPLAY);
|
||||||
|
|
||||||
G_DEFINE_TYPE_WITH_CODE (GstVaapiDisplayX11, gst_vaapi_display_x11,
|
|
||||||
GST_TYPE_VAAPI_DISPLAY, _do_init);
|
|
||||||
|
|
||||||
static inline const gchar *
|
static inline const gchar *
|
||||||
get_default_display_name (void)
|
get_default_display_name (void)
|
||||||
|
|
Loading…
Reference in a new issue