[vlc-commits] vout: decklink: schedule audio on system time
Francois Cartegnie
git at videolan.org
Sat May 5 17:20:42 CEST 2018
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Sat May 5 12:06:57 2018 +0200| [15fb131417620159b63b9fe029e017d6e45b9bcf] | committer: Thomas Guillem
vout: decklink: schedule audio on system time
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=15fb131417620159b63b9fe029e017d6e45b9bcf
---
modules/video_output/decklink.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/video_output/decklink.cpp b/modules/video_output/decklink.cpp
index 54f24739b8..d4cb4aef9f 100644
--- a/modules/video_output/decklink.cpp
+++ b/modules/video_output/decklink.cpp
@@ -1126,7 +1126,7 @@ static int Start(audio_output_t *aout, audio_sample_format_t *restrict fmt)
return VLC_SUCCESS;
}
-static void PlayAudio(audio_output_t *aout, block_t *audio, mtime_t)
+static void PlayAudio(audio_output_t *aout, block_t *audio, mtime_t systempts)
{
decklink_sys_t *sys = (decklink_sys_t *) aout->sys;
vlc_mutex_lock(&sys->lock);
@@ -1141,7 +1141,7 @@ static void PlayAudio(audio_output_t *aout, block_t *audio, mtime_t)
uint32_t sampleFrameCount = audio->i_buffer / (2 * 2 /*decklink_sys->i_channels*/);
uint32_t written;
HRESULT result = p_output->ScheduleAudioSamples(
- audio->p_buffer, sampleFrameCount, audio->i_pts, CLOCK_FREQ, &written);
+ audio->p_buffer, sampleFrameCount, systempts, CLOCK_FREQ, &written);
if (result != S_OK)
msg_Err(aout, "Failed to schedule audio sample: 0x%X", result);
More information about the vlc-commits
mailing list