diff options
Diffstat (limited to 'media-plugins/gst-plugins-pulse/files/0002-pulsesink-Allocate-and-free-the-custom-clock-in-NULL.patch')
-rw-r--r-- | media-plugins/gst-plugins-pulse/files/0002-pulsesink-Allocate-and-free-the-custom-clock-in-NULL.patch | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/media-plugins/gst-plugins-pulse/files/0002-pulsesink-Allocate-and-free-the-custom-clock-in-NULL.patch b/media-plugins/gst-plugins-pulse/files/0002-pulsesink-Allocate-and-free-the-custom-clock-in-NULL.patch deleted file mode 100644 index 288eed63c833..000000000000 --- a/media-plugins/gst-plugins-pulse/files/0002-pulsesink-Allocate-and-free-the-custom-clock-in-NULL.patch +++ /dev/null @@ -1,49 +0,0 @@ -e69ba0f pulsesink: Allocate and free the custom clock in NULL<->READY - ext/pulse/pulsesink.c | 17 ++++++++++------- - 1 files changed, 10 insertions(+), 7 deletions(-) - -diff --git a/ext/pulse/pulsesink.c b/ext/pulse/pulsesink.c -index 4b45a2f..e39b672 100644 ---- a/ext/pulse/pulsesink.c -+++ b/ext/pulse/pulsesink.c -@@ -1664,13 +1664,6 @@ gst_pulsesink_init (GstPulseSink * pulsesink, GstPulseSinkClass * klass) - pulsesink->probe = gst_pulseprobe_new (G_OBJECT (pulsesink), - G_OBJECT_GET_CLASS (pulsesink), PROP_DEVICE, pulsesink->device, - TRUE, FALSE); -- -- /* override with a custom clock */ -- 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 = -- gst_audio_clock_new ("GstPulseSinkClock", -- (GstAudioClockGetTimeFunc) gst_pulsesink_get_time, pulsesink); - } - - static void -@@ -2275,6 +2268,13 @@ gst_pulsesink_change_state (GstElement * element, GstStateChange transition) - g_assert (pulsesink->mainloop != NULL); - res = pa_threaded_mainloop_start (pulsesink->mainloop); - g_assert (res == 0); -+ -+ /* override with a custom clock */ -+ 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 = -+ gst_audio_clock_new ("GstPulseSinkClock", -+ (GstAudioClockGetTimeFunc) gst_pulsesink_get_time, pulsesink); - break; - default: - break; -@@ -2284,6 +2284,9 @@ gst_pulsesink_change_state (GstElement * element, GstStateChange transition) - - switch (transition) { - case GST_STATE_CHANGE_READY_TO_NULL: -+ 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); --- -1.7.2 - |