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
@ -91,7 +91,7 @@ static guint gst_wasapi_src_read (GstAudioSrc * asrc, gpointer data,
|
|||||||
static guint gst_wasapi_src_delay (GstAudioSrc * asrc);
|
static guint gst_wasapi_src_delay (GstAudioSrc * asrc);
|
||||||
static void gst_wasapi_src_reset (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,
|
static GstClockTime gst_wasapi_src_get_time (GstClock * clock,
|
||||||
gpointer user_data);
|
gpointer user_data);
|
||||||
#endif
|
#endif
|
||||||
@ -173,7 +173,7 @@ gst_wasapi_src_class_init (GstWasapiSrcClass * klass)
|
|||||||
static void
|
static void
|
||||||
gst_wasapi_src_init (GstWasapiSrc * self)
|
gst_wasapi_src_init (GstWasapiSrc * self)
|
||||||
{
|
{
|
||||||
#ifdef DEFAULT_PROVIDE_CLOCK
|
#if DEFAULT_PROVIDE_CLOCK
|
||||||
/* override with a custom clock */
|
/* override with a custom clock */
|
||||||
if (GST_AUDIO_BASE_SRC (self)->clock)
|
if (GST_AUDIO_BASE_SRC (self)->clock)
|
||||||
gst_object_unref (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);
|
GST_OBJECT_UNLOCK (self);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef DEFAULT_PROVIDE_CLOCK
|
#if DEFAULT_PROVIDE_CLOCK
|
||||||
static GstClockTime
|
static GstClockTime
|
||||||
gst_wasapi_src_get_time (GstClock * clock, gpointer user_data)
|
gst_wasapi_src_get_time (GstClock * clock, gpointer user_data)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user