diff options
author | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2010-06-02 10:52:56 +0200 |
---|---|---|
committer | Wim Taymans <wtaymans@redhat.com> | 2014-11-19 15:54:00 +0100 |
commit | 8d94c66a3d52a1cdd9e1ec510af7f22d90451ff7 (patch) | |
tree | b092ba9aa6b539d8be6a6a2e2a2dc4c64013fb50 | |
parent | 418885d898d6b540cc7b89729013b7b6b46fe2ea (diff) |
pulsesink: Post provide-clock message on the bus if the clock appears/disappearsrhel-6.nextrhel-6.9rhel-6.8
Fixes bug #620277.
-rw-r--r-- | ext/pulse/pulsesink.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ext/pulse/pulsesink.c b/ext/pulse/pulsesink.c index 8d5f0fe2f..08a1d7eb6 100644 --- a/ext/pulse/pulsesink.c +++ b/ext/pulse/pulsesink.c @@ -2323,6 +2323,9 @@ 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); + gst_element_post_message (element, + gst_message_new_clock_provide (GST_OBJECT_CAST (element), + GST_BASE_AUDIO_SINK (pulsesink)->provided_clock, TRUE)); break; default: break; @@ -2332,6 +2335,9 @@ gst_pulsesink_change_state (GstElement * element, GstStateChange transition) switch (transition) { case GST_STATE_CHANGE_READY_TO_NULL: + 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; |