mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 17:50:36 +00:00
app: Update for g_type_class_add_private() deprecation in recent GLib
https://gitlab.gnome.org/GNOME/glib/merge_requests/7
This commit is contained in:
parent
76f99f803b
commit
7b98593280
2 changed files with 4 additions and 9 deletions
|
@ -188,6 +188,7 @@ static guint gst_app_sink_signals[LAST_SIGNAL] = { 0 };
|
|||
|
||||
#define gst_app_sink_parent_class parent_class
|
||||
G_DEFINE_TYPE_WITH_CODE (GstAppSink, gst_app_sink, GST_TYPE_BASE_SINK,
|
||||
G_ADD_PRIVATE (GstAppSink)
|
||||
G_IMPLEMENT_INTERFACE (GST_TYPE_URI_HANDLER,
|
||||
gst_app_sink_uri_handler_init));
|
||||
|
||||
|
@ -447,8 +448,6 @@ gst_app_sink_class_init (GstAppSinkClass * klass)
|
|||
klass->pull_sample = gst_app_sink_pull_sample;
|
||||
klass->try_pull_preroll = gst_app_sink_try_pull_preroll;
|
||||
klass->try_pull_sample = gst_app_sink_try_pull_sample;
|
||||
|
||||
g_type_class_add_private (klass, sizeof (GstAppSinkPrivate));
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -456,9 +455,7 @@ gst_app_sink_init (GstAppSink * appsink)
|
|||
{
|
||||
GstAppSinkPrivate *priv;
|
||||
|
||||
priv = appsink->priv =
|
||||
G_TYPE_INSTANCE_GET_PRIVATE (appsink, GST_TYPE_APP_SINK,
|
||||
GstAppSinkPrivate);
|
||||
priv = appsink->priv = gst_app_sink_get_instance_private (appsink);
|
||||
|
||||
g_mutex_init (&priv->mutex);
|
||||
g_cond_init (&priv->cond);
|
||||
|
|
|
@ -242,6 +242,7 @@ static guint gst_app_src_signals[LAST_SIGNAL] = { 0 };
|
|||
|
||||
#define gst_app_src_parent_class parent_class
|
||||
G_DEFINE_TYPE_WITH_CODE (GstAppSrc, gst_app_src, GST_TYPE_BASE_SRC,
|
||||
G_ADD_PRIVATE (GstAppSrc)
|
||||
G_IMPLEMENT_INTERFACE (GST_TYPE_URI_HANDLER, gst_app_src_uri_handler_init));
|
||||
|
||||
static void
|
||||
|
@ -562,8 +563,6 @@ gst_app_src_class_init (GstAppSrcClass * klass)
|
|||
klass->push_buffer_list = gst_app_src_push_buffer_list_action;
|
||||
klass->push_sample = gst_app_src_push_sample_action;
|
||||
klass->end_of_stream = gst_app_src_end_of_stream;
|
||||
|
||||
g_type_class_add_private (klass, sizeof (GstAppSrcPrivate));
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -571,8 +570,7 @@ gst_app_src_init (GstAppSrc * appsrc)
|
|||
{
|
||||
GstAppSrcPrivate *priv;
|
||||
|
||||
priv = appsrc->priv = G_TYPE_INSTANCE_GET_PRIVATE (appsrc, GST_TYPE_APP_SRC,
|
||||
GstAppSrcPrivate);
|
||||
priv = appsrc->priv = gst_app_src_get_instance_private (appsrc);
|
||||
|
||||
g_mutex_init (&priv->mutex);
|
||||
g_cond_init (&priv->cond);
|
||||
|
|
Loading…
Reference in a new issue