diff options
Diffstat (limited to 'gst/debugutils/gstfakeaudiosink.c')
-rw-r--r-- | gst/debugutils/gstfakeaudiosink.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/gst/debugutils/gstfakeaudiosink.c b/gst/debugutils/gstfakeaudiosink.c index ef736eb24..5b962a215 100644 --- a/gst/debugutils/gstfakeaudiosink.c +++ b/gst/debugutils/gstfakeaudiosink.c @@ -63,6 +63,18 @@ GST_ELEMENT_REGISTER_DEFINE (fakeaudiosink, "fakeaudiosink", GST_RANK_NONE, gst_fake_audio_sink_get_type ()); static void +gst_fake_audio_sink_proxy_properties (GstFakeAudioSink * self, + GstElement * child) +{ + static gsize initialized = 0; + + if (g_once_init_enter (&initialized)) { + gst_fake_sink_proxy_properties (GST_ELEMENT_CAST (self), child, PROP_LAST); + g_once_init_leave (&initialized, 1); + } +} + +static void gst_fake_audio_sink_init (GstFakeAudioSink * self) { GstElement *child; @@ -89,7 +101,7 @@ gst_fake_audio_sink_init (GstFakeAudioSink * self) self->child = child; - gst_fake_sink_proxy_properties (GST_ELEMENT_CAST (self), child, PROP_LAST); + gst_fake_audio_sink_proxy_properties (self, child); } else { g_warning ("Check your GStreamer installation, " "core element 'fakesink' is missing."); |