wasapisrc: Correctly disable provide-clock

`#ifdef` will, of course, evaluate to 1 in this case. We want `#if`.
This commit is contained in:
Nirbheek Chauhan 2018-08-02 18:24:02 +05:30
parent 1f65a3aa13
commit fa03f81c64

View file

@ -91,7 +91,7 @@ static guint gst_wasapi_src_read (GstAudioSrc * asrc, gpointer data,
static guint gst_wasapi_src_delay (GstAudioSrc * asrc);
static void gst_wasapi_src_reset (GstAudioSrc * asrc);
#ifdef DEFAULT_PROVIDE_CLOCK
#if DEFAULT_PROVIDE_CLOCK
static GstClockTime gst_wasapi_src_get_time (GstClock * clock,
gpointer user_data);
#endif
@ -173,7 +173,7 @@ gst_wasapi_src_class_init (GstWasapiSrcClass * klass)
static void
gst_wasapi_src_init (GstWasapiSrc * self)
{
#ifdef DEFAULT_PROVIDE_CLOCK
#if DEFAULT_PROVIDE_CLOCK
/* override with a custom clock */
if (GST_AUDIO_BASE_SRC (self)->clock)
gst_object_unref (GST_AUDIO_BASE_SRC (self)->clock);
@ -679,7 +679,7 @@ gst_wasapi_src_reset (GstAudioSrc * asrc)
GST_OBJECT_UNLOCK (self);
}
#ifdef DEFAULT_PROVIDE_CLOCK
#if DEFAULT_PROVIDE_CLOCK
static GstClockTime
gst_wasapi_src_get_time (GstClock * clock, gpointer user_data)
{