mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 11:45:25 +00:00
wasapisrc: Correctly disable provide-clock
`#ifdef` will, of course, evaluate to 1 in this case. We want `#if`.
This commit is contained in:
parent
1f65a3aa13
commit
fa03f81c64
1 changed files with 3 additions and 3 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue