mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
osxaudio: fix latency property query on RemoteIO
AudioUnitGetProperty would fail with kParamErr (-50) every time, simply because size wasn't initialized. Now it returns zero latency, but at least it doesn't fail. https://bugzilla.gnome.org/show_bug.cgi?id=750868
This commit is contained in:
parent
8e236fa2e1
commit
f676079e95
1 changed files with 1 additions and 1 deletions
|
@ -64,7 +64,7 @@ gst_core_audio_get_samples_and_latency_impl (GstCoreAudio * core_audio,
|
|||
gdouble rate, guint * samples, gdouble * latency)
|
||||
{
|
||||
OSStatus status;
|
||||
UInt32 size;
|
||||
UInt32 size = sizeof (double);
|
||||
|
||||
status = AudioUnitGetProperty (core_audio->audiounit, kAudioUnitProperty_Latency, kAudioUnitScope_Global, 0, /* N/A for global */
|
||||
latency, &size);
|
||||
|
|
Loading…
Reference in a new issue