mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-06 07:28:53 +00:00
d3dvideosink: Update to new GLib threading API
This commit is contained in:
parent
9838e3748c
commit
d2d19eb1e6
2 changed files with 5 additions and 5 deletions
|
@ -163,7 +163,7 @@ gst_d3dvideosink_class_init (GstD3DVideoSinkClass * klass)
|
||||||
gst_element_class_add_pad_template (gstelement_class,
|
gst_element_class_add_pad_template (gstelement_class,
|
||||||
gst_static_pad_template_get (&sink_template));
|
gst_static_pad_template_get (&sink_template));
|
||||||
|
|
||||||
g_static_rec_mutex_init (&klass->lock);
|
g_rec_mutex_init (&klass->lock);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
@ -182,7 +182,7 @@ gst_d3dvideosink_init (GstD3DVideoSink * sink)
|
||||||
sink->stream_stop_on_close = DEFAULT_STREAM_STOP_ON_CLOSE;
|
sink->stream_stop_on_close = DEFAULT_STREAM_STOP_ON_CLOSE;
|
||||||
sink->enable_navigation_events = DEFAULT_ENABLE_NAVIGATION_EVENTS;
|
sink->enable_navigation_events = DEFAULT_ENABLE_NAVIGATION_EVENTS;
|
||||||
|
|
||||||
g_static_rec_mutex_init (&sink->lock);
|
g_rec_mutex_init (&sink->lock);
|
||||||
}
|
}
|
||||||
|
|
||||||
/** GObject Functions **/
|
/** GObject Functions **/
|
||||||
|
@ -196,7 +196,7 @@ gst_d3dvideosink_finalize (GObject * gobject)
|
||||||
|
|
||||||
d3d_class_destroy (sink);
|
d3d_class_destroy (sink);
|
||||||
|
|
||||||
g_static_rec_mutex_free (&sink->lock);
|
g_rec_mutex_clear (&sink->lock);
|
||||||
|
|
||||||
G_OBJECT_CLASS (gst_d3dvideosink_parent_class)->finalize (gobject);
|
G_OBJECT_CLASS (gst_d3dvideosink_parent_class)->finalize (gobject);
|
||||||
}
|
}
|
||||||
|
|
|
@ -80,7 +80,7 @@ struct _GstD3DVideoSink
|
||||||
|
|
||||||
GstVideoRectangle render_rect;
|
GstVideoRectangle render_rect;
|
||||||
|
|
||||||
GStaticRecMutex lock;
|
GRecMutex lock;
|
||||||
|
|
||||||
/* Properties */
|
/* Properties */
|
||||||
gboolean force_aspect_ratio;
|
gboolean force_aspect_ratio;
|
||||||
|
@ -93,7 +93,7 @@ struct _GstD3DVideoSinkClass
|
||||||
{
|
{
|
||||||
GstVideoSinkClass parent_class;
|
GstVideoSinkClass parent_class;
|
||||||
GstD3DDataClass d3d;
|
GstD3DDataClass d3d;
|
||||||
GStaticRecMutex lock;
|
GRecMutex lock;
|
||||||
};
|
};
|
||||||
|
|
||||||
#if 1
|
#if 1
|
||||||
|
|
Loading…
Reference in a new issue