sample_depth = bmdAudioSampleType32bitInteger;
}
+ g_mutex_lock (&self->output->lock);
ret = self->output->output->EnableAudioOutput (bmdAudioSampleRate48kHz,
sample_depth, info.channels, bmdAudioOutputStreamContinuous);
if (ret != S_OK) {
+ g_mutex_unlock (&self->output->lock);
GST_WARNING_OBJECT (self, "Failed to enable audio output 0x%08lx",
(unsigned long) ret);
return FALSE;
self->output->audio_enabled = TRUE;
self->info = info;
+ if (self->output->start_scheduled_playback && self->output->videosink)
+ self->output->start_scheduled_playback (self->output->videosink);
+ g_mutex_unlock (&self->output->lock);
+
// Create a new resampler as needed
if (self->resampler)
gst_audio_resampler_free (self->resampler);