Commit 1d7a63b4 authored by Nirbheek Chauhan's avatar Nirbheek Chauhan 🐜

wasapisrc: Correctly disable provide-clock

`#ifdef` will, of course, evaluate to 1 in this case. We want `#if`.
parent f06c2fe0
......@@ -89,7 +89,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
......@@ -165,7 +165,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);
......@@ -663,7 +663,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)
{
......
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