mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-09-09 05:38:58 +00:00
pulsesink: Add comments to remove the provide-clock message posting once we depend on base 0.10.30
baseaudiosink does all this for us now.
This commit is contained in:
parent
a8ffe6f593
commit
8f3708f38a
1 changed files with 3 additions and 0 deletions
|
@ -2488,6 +2488,7 @@ gst_pulsesink_change_state (GstElement * element, GstStateChange transition)
|
|||
GST_BASE_AUDIO_SINK (pulsesink)->provided_clock =
|
||||
gst_audio_clock_new ("GstPulseSinkClock",
|
||||
(GstAudioClockGetTimeFunc) gst_pulsesink_get_time, pulsesink);
|
||||
/* FIXME: Remove this once we depend on -base 0.10.30 */
|
||||
gst_element_post_message (element,
|
||||
gst_message_new_clock_provide (GST_OBJECT_CAST (element),
|
||||
GST_BASE_AUDIO_SINK (pulsesink)->provided_clock, TRUE));
|
||||
|
@ -2500,12 +2501,14 @@ gst_pulsesink_change_state (GstElement * element, GstStateChange transition)
|
|||
|
||||
switch (transition) {
|
||||
case GST_STATE_CHANGE_READY_TO_NULL:
|
||||
/* FIXME: Remove this once we depend on -base 0.10.30 */
|
||||
gst_element_post_message (element,
|
||||
gst_message_new_clock_provide (GST_OBJECT_CAST (element), NULL,
|
||||
FALSE));
|
||||
if (GST_BASE_AUDIO_SINK (pulsesink)->provided_clock)
|
||||
gst_object_unref (GST_BASE_AUDIO_SINK (pulsesink)->provided_clock);
|
||||
GST_BASE_AUDIO_SINK (pulsesink)->provided_clock = NULL;
|
||||
|
||||
if (pulsesink->mainloop) {
|
||||
pa_threaded_mainloop_stop (pulsesink->mainloop);
|
||||
pa_threaded_mainloop_free (pulsesink->mainloop);
|
||||
|
|
Loading…
Reference in a new issue