Commit 7055264e authored by Tim-Philipp Müller's avatar Tim-Philipp Müller
Browse files

pulsesink: correctly check what version of gst-plugins-base we're compiling against

We need to check the gst-plugins-base version, not the core version
(even if both should be the same in any sane setup).
parent c6f47c34
......@@ -51,6 +51,8 @@
#include <gst/interfaces/streamvolume.h>
#include <gst/gst-i18n-plugin.h>
#include <gst/pbutils/pbutils.h> /* only used for GST_PLUGINS_BASE_VERSION_* */
#include "pulsesink.h"
#include "pulseutil.h"
......@@ -2503,7 +2505,10 @@ gst_pulsesink_change_state (GstElement * element, GstStateChange transition)
/* override with a custom clock */
if (GST_BASE_AUDIO_SINK (pulsesink)->provided_clock)
gst_object_unref (GST_BASE_AUDIO_SINK (pulsesink)->provided_clock);
#if GST_CHECK_VERSION(0, 10, 31) || (GST_CHECK_VERSION(0, 10, 30) && GST_VERSION_NANO > 0)
/* FIXME: get rid once we can depend on core/base git again (>=
* (and the pbutils include above as well) */
GST_BASE_AUDIO_SINK (pulsesink)->provided_clock =
gst_audio_clock_new_full ("GstPulseSinkClock",
(GstAudioClockGetTimeFunc) gst_pulsesink_get_time,
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment