written_sum += written;
} while (len > 0 && res == S_OK);
- GST_LOG_OBJECT (m_ringbuffer->sink, "Wrote %u samples: 0x%08x", written_sum,
+ GST_LOG_OBJECT (m_ringbuffer->sink, "Wrote %u samples: 0x%08lx", written_sum,
res);
gst_audio_ring_buffer_clear (GST_AUDIO_RING_BUFFER_CAST (m_ringbuffer),
ret = 0;
}
- GST_DEBUG_OBJECT (self->sink, "Delay: %u (0x%08x)", ret, res);
+ GST_DEBUG_OBJECT (self->sink, "Delay: %u (0x%08lx)", ret, res);
return ret;
}
ret = self->output->output->EnableAudioOutput (bmdAudioSampleRate48kHz,
sample_depth, spec->info.channels, bmdAudioOutputStreamContinuous);
if (ret != S_OK) {
- GST_WARNING_OBJECT (self->sink, "Failed to enable audio output 0x%08x",
+ GST_WARNING_OBJECT (self->sink, "Failed to enable audio output 0x%08lx",
ret);
return FALSE;
}
output->SetAudioCallback (new GStreamerAudioOutputCallback (self));
if (ret != S_OK) {
GST_WARNING_OBJECT (self->sink,
- "Failed to set audio output callback 0x%08x", ret);
+ "Failed to set audio output callback 0x%08lx", ret);
return FALSE;
}
gst_decklink_get_connection (self->connection));
if (ret != S_OK) {
GST_ERROR_OBJECT (self,
- "Failed to set configuration (input source): 0x%08x", ret);
+ "Failed to set configuration (input source): 0x%08lx", ret);
return FALSE;
}
bmdAnalogVideoFlagCompositeSetup75);
if (ret != S_OK) {
GST_ERROR_OBJECT (self,
- "Failed to set configuration (composite setup): 0x%08x", ret);
+ "Failed to set configuration (composite setup): 0x%08lx", ret);
return FALSE;
}
}
&autoDetection);
if (ret != S_OK) {
GST_ERROR_OBJECT (self,
- "Failed to get attribute (autodetection): 0x%08x", ret);
+ "Failed to get attribute (autodetection): 0x%08lx", ret);
return FALSE;
}
if (autoDetection)
format = self->caps_format;
ret = self->input->input->EnableVideoInput (mode->mode, format, flags);
if (ret != S_OK) {
- GST_WARNING_OBJECT (self, "Failed to enable video input: 0x%08x", ret);
+ GST_WARNING_OBJECT (self, "Failed to enable video input: 0x%08lx", ret);
return FALSE;
}
res = dtc->GetComponents (&hours, &minutes, &seconds, &frames);
if (res != S_OK) {
- GST_ERROR ("Could not get components for timecode %p: 0x%08x", dtc,
+ GST_ERROR ("Could not get components for timecode %p: 0x%08lx", dtc,
res);
f.tc = NULL;
} else {
res = self->input->input->StartStreams ();
if (res != S_OK) {
GST_ELEMENT_ERROR (self, STREAM, FAILED,
- (NULL), ("Failed to start streams: 0x%08x", res));
+ (NULL), ("Failed to start streams: 0x%08lx", res));
return;
}
} else {
res = self->input->input->StopStreams ();
if (res != S_OK) {
GST_ELEMENT_ERROR (self, STREAM, FAILED,
- (NULL), ("Failed to stop streams: 0x%08x", res));
+ (NULL), ("Failed to stop streams: 0x%08lx", res));
ret = GST_STATE_CHANGE_FAILURE;
}
break;