mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-03 13:02:29 +00:00
ext/jack/gstjackaudiosink.c: Work around missing bits of thread-safety on older GLibs some more to avoid assertions w...
Original commit message from CVS: * ext/jack/gstjackaudiosink.c: (gst_jack_audio_sink_class_init): Work around missing bits of thread-safety on older GLibs some more to avoid assertions when starting up multiple playbin objects concurrently (see #512382).
This commit is contained in:
parent
459484bc4d
commit
d418db9aed
1 changed files with 4 additions and 0 deletions
|
@ -773,6 +773,10 @@ gst_jack_audio_sink_class_init (GstJackAudioSinkClass * klass)
|
||||||
gstbaseaudiosink_class->create_ringbuffer =
|
gstbaseaudiosink_class->create_ringbuffer =
|
||||||
GST_DEBUG_FUNCPTR (gst_jack_audio_sink_create_ringbuffer);
|
GST_DEBUG_FUNCPTR (gst_jack_audio_sink_create_ringbuffer);
|
||||||
|
|
||||||
|
/* ref class from a thread-safe context to work around missing bit of
|
||||||
|
* thread-safety in GObject */
|
||||||
|
g_type_class_ref (GST_TYPE_JACK_RING_BUFFER);
|
||||||
|
|
||||||
gst_jack_audio_client_init ();
|
gst_jack_audio_client_init ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue