mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
gst-libs/gst/audio/: Ref audio clock class from a thread-safe context to make sure however unlikely that may be in pr...
Original commit message from CVS: * gst-libs/gst/audio/gstbaseaudiosink.c: (gst_base_audio_sink_class_init): * gst-libs/gst/audio/gstbaseaudiosrc.c: (gst_base_audio_src_class_init): Ref audio clock class from a thread-safe context to make sure we're not bit by GObjects lack of thread-safety here (#349410), however unlikely that may be in practice.
This commit is contained in:
parent
a0223952a6
commit
3feb4bc8c5
3 changed files with 18 additions and 0 deletions
10
ChangeLog
10
ChangeLog
|
@ -1,3 +1,13 @@
|
|||
2008-01-10 Tim-Philipp Müller <tim at centricular dot net>
|
||||
|
||||
* gst-libs/gst/audio/gstbaseaudiosink.c:
|
||||
(gst_base_audio_sink_class_init):
|
||||
* gst-libs/gst/audio/gstbaseaudiosrc.c:
|
||||
(gst_base_audio_src_class_init):
|
||||
Ref audio clock class from a thread-safe context to make sure
|
||||
we're not bit by GObjects lack of thread-safety here (#349410),
|
||||
however unlikely that may be in practice.
|
||||
|
||||
2008-01-10 Sebastian Dröge <slomo@circular-chaos.org>
|
||||
|
||||
* autogen.sh:
|
||||
|
|
|
@ -209,6 +209,10 @@ gst_base_audio_sink_class_init (GstBaseAudioSinkClass * klass)
|
|||
GST_DEBUG_FUNCPTR (gst_base_audio_sink_async_play);
|
||||
gstbasesink_class->activate_pull =
|
||||
GST_DEBUG_FUNCPTR (gst_base_audio_sink_activate_pull);
|
||||
|
||||
/* ref class from a thread-safe context to work around missing bit of
|
||||
* thread-safety in GObject */
|
||||
g_type_class_ref (GST_TYPE_AUDIO_CLOCK);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -169,6 +169,10 @@ gst_base_audio_src_class_init (GstBaseAudioSrcClass * klass)
|
|||
gstbasesrc_class->check_get_range =
|
||||
GST_DEBUG_FUNCPTR (gst_base_audio_src_check_get_range);
|
||||
gstbasesrc_class->fixate = GST_DEBUG_FUNCPTR (gst_base_audio_src_fixate);
|
||||
|
||||
/* ref class from a thread-safe context to work around missing bit of
|
||||
* thread-safety in GObject */
|
||||
g_type_class_ref (GST_TYPE_AUDIO_CLOCK);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
Loading…
Reference in a new issue