video_frame->GetStreamTime (&stream_time, &stream_duration,
GST_SECOND);
if (res != S_OK) {
- GST_ERROR ("Failed to get stream time: 0x%08x", res);
+ GST_ERROR ("Failed to get stream time: 0x%08lx", (unsigned long) res);
stream_time = GST_CLOCK_TIME_NONE;
stream_duration = GST_CLOCK_TIME_NONE;
}
&dtc);
if (res != S_OK) {
- GST_DEBUG_OBJECT (videosrc, "Failed to get timecode: 0x%08x", res);
+ GST_DEBUG_OBJECT (videosrc, "Failed to get timecode: 0x%08lx",
+ (unsigned long) res);
dtc = NULL;
}
}
ret = decklink->QueryInterface (IID_IDeckLinkInput,
(void **) &devices[i].input.input);
if (ret != S_OK) {
- GST_WARNING ("selected device does not have input interface: 0x%08x",
- ret);
+ GST_WARNING ("selected device does not have input interface: 0x%08lx",
+ (unsigned long) ret);
} else {
IDeckLinkDisplayModeIterator *mode_iter;
ret = decklink->QueryInterface (IID_IDeckLinkOutput,
(void **) &devices[i].output.output);
if (ret != S_OK) {
- GST_WARNING ("selected device does not have output interface: 0x%08x",
- ret);
+ GST_WARNING ("selected device does not have output interface: 0x%08lx",
+ (unsigned long) ret);
} else {
IDeckLinkDisplayModeIterator *mode_iter;
ret = decklink->QueryInterface (IID_IDeckLinkConfiguration,
(void **) &devices[i].input.config);
if (ret != S_OK) {
- GST_WARNING ("selected device does not have config interface: 0x%08x",
- ret);
+ GST_WARNING ("selected device does not have config interface: 0x%08lx",
+ (unsigned long) ret);
}
ret = decklink->QueryInterface (IID_IDeckLinkAttributes,
(void **) &devices[i].input.attributes);
devices[i].output.attributes = devices[i].input.attributes;
if (ret != S_OK) {
- GST_WARNING ("selected device does not have attributes interface: 0x%08x",
- ret);
+ GST_WARNING ("selected device does not have attributes interface: "
+ "0x%08lx", (unsigned long) ret);
}
ret = iterator->Next (&decklink);
GST_LOG_OBJECT (clock,
"result %" GST_TIME_FORMAT " time %" GST_TIME_FORMAT " last time %"
GST_TIME_FORMAT " offset %" GST_TIME_FORMAT " start time %"
- GST_TIME_FORMAT " (ret: 0x%08x)", GST_TIME_ARGS (result),
+ GST_TIME_FORMAT " (ret: 0x%08lx)", GST_TIME_ARGS (result),
GST_TIME_ARGS (time), GST_TIME_ARGS (last_time), GST_TIME_ARGS (offset),
- GST_TIME_ARGS (start_time), ret);
+ GST_TIME_ARGS (start_time), (unsigned long) ret);
return result;
}
} while (len > 0 && res == S_OK);
GST_LOG_OBJECT (m_ringbuffer->sink, "Wrote %u samples: 0x%08lx", written_sum,
- res);
+ (unsigned long) res);
gst_audio_ring_buffer_clear (GST_AUDIO_RING_BUFFER_CAST (m_ringbuffer),
seg);
ret = 0;
}
- GST_DEBUG_OBJECT (self->sink, "Delay: %u (0x%08lx)", ret, res);
+ GST_DEBUG_OBJECT (self->sink, "Delay: %u (0x%08lx)", ret,
+ (unsigned long) res);
return ret;
}
sample_depth, spec->info.channels, bmdAudioOutputStreamContinuous);
if (ret != S_OK) {
GST_WARNING_OBJECT (self->sink, "Failed to enable audio output 0x%08lx",
- ret);
+ (unsigned long) ret);
return FALSE;
}
output->SetAudioCallback (new GStreamerAudioOutputCallback (self));
if (ret != S_OK) {
GST_WARNING_OBJECT (self->sink,
- "Failed to set audio output callback 0x%08lx", ret);
+ "Failed to set audio output callback 0x%08lx", (unsigned long) ret);
return FALSE;
}
self->input->config->SetInt (bmdDeckLinkConfigAudioInputConnection,
conn);
if (ret != S_OK) {
- GST_ERROR ("set configuration (audio input connection): 0x%08x", ret);
+ GST_ERROR ("set configuration (audio input connection): 0x%08lx",
+ (unsigned long) ret);
return FALSE;
}
}
ret = self->input->input->EnableAudioInput (bmdAudioSampleRate48kHz,
sample_depth, self->info.channels);
if (ret != S_OK) {
- GST_WARNING_OBJECT (self, "Failed to enable audio input: 0x%08x", ret);
+ GST_WARNING_OBJECT (self, "Failed to enable audio input: 0x%08lx",
+ (unsigned long) ret);
return FALSE;
}
ret = self->output->output->EnableVideoOutput (mode->mode, flags);
if (ret != S_OK) {
- GST_WARNING_OBJECT (self, "Failed to enable video output: 0x%08x", ret);
+ GST_WARNING_OBJECT (self, "Failed to enable video output: 0x%08lx",
+ (unsigned long) ret);
return FALSE;
}
&frame);
if (ret != S_OK) {
GST_ELEMENT_ERROR (self, STREAM, FAILED,
- (NULL), ("Failed to create video frame: 0x%08x", ret));
+ (NULL), ("Failed to create video frame: 0x%08lx", (unsigned long) ret));
return GST_FLOW_ERROR;
}
(uint8_t) tc_meta->tc.seconds, (uint8_t) tc_meta->tc.frames, bflags);
if (ret != S_OK) {
GST_ERROR_OBJECT (self,
- "Failed to set timecode %s to video frame: 0x%08x", tc_str, ret);
+ "Failed to set timecode %s to video frame: 0x%08lx", tc_str,
+ (unsigned long) ret);
flow_ret = GST_FLOW_ERROR;
g_free (tc_str);
goto out;
ret = self->output->output->DisplayVideoFrameSync (frame);
if (ret != S_OK) {
GST_ELEMENT_WARNING (self, STREAM, FAILED,
- (NULL), ("Failed to show video frame synchronously: 0x%08x", ret));
+ (NULL), ("Failed to show video frame synchronously: 0x%08lx",
+ (unsigned long) ret));
ret = S_OK;
}
}
running_time, running_time_duration, GST_SECOND);
if (ret != S_OK) {
GST_ELEMENT_ERROR (self, STREAM, FAILED,
- (NULL), ("Failed to schedule frame: 0x%08x", ret));
+ (NULL), ("Failed to schedule frame: 0x%08lx", (unsigned long) ret));
flow_ret = GST_FLOW_ERROR;
goto out;
}
res = self->output->output->StopScheduledPlayback (0, 0, 0);
if (res != S_OK) {
GST_ELEMENT_ERROR (self, STREAM, FAILED,
- (NULL), ("Failed to stop scheduled playback: 0x%08x", res));
+ (NULL), ("Failed to stop scheduled playback: 0x%08lx",
+ (unsigned long) res));
gst_object_unref (clock);
return;
}
GST_SECOND, 1.0);
if (res != S_OK) {
GST_ELEMENT_ERROR (self, STREAM, FAILED,
- (NULL), ("Failed to start scheduled playback: 0x%08x", res));
+ (NULL), ("Failed to start scheduled playback: 0x%08lx",
+ (unsigned long) res));
gst_object_unref (clock);
return;
}
res = self->output->output->StopScheduledPlayback (start_time, 0, GST_SECOND);
if (res != S_OK) {
GST_ELEMENT_ERROR (self, STREAM, FAILED,
- (NULL), ("Failed to stop scheduled playback: 0x%08x", res));
+ (NULL), ("Failed to stop scheduled playback: 0x%08lx", (unsigned long)
+ res));
ret = GST_STATE_CHANGE_FAILURE;
}
self->internal_base_time = GST_CLOCK_TIME_NONE;
gst_decklink_get_connection (self->connection));
if (ret != S_OK) {
GST_ERROR_OBJECT (self,
- "Failed to set configuration (input source): 0x%08lx", ret);
+ "Failed to set configuration (input source): 0x%08lx",
+ (unsigned long) ret);
return FALSE;
}
bmdAnalogVideoFlagCompositeSetup75);
if (ret != S_OK) {
GST_ERROR_OBJECT (self,
- "Failed to set configuration (composite setup): 0x%08lx", ret);
+ "Failed to set configuration (composite setup): 0x%08lx",
+ (unsigned long) ret);
return FALSE;
}
}
&autoDetection);
if (ret != S_OK) {
GST_ERROR_OBJECT (self,
- "Failed to get attribute (autodetection): 0x%08lx", ret);
+ "Failed to get attribute (autodetection): 0x%08lx",
+ (unsigned long) 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%08lx", ret);
+ GST_WARNING_OBJECT (self, "Failed to enable video input: 0x%08lx",
+ (unsigned long) ret);
return FALSE;
}
res = dtc->GetComponents (&hours, &minutes, &seconds, &frames);
if (res != S_OK) {
GST_ERROR ("Could not get components for timecode %p: 0x%08lx", dtc,
- res);
+ (unsigned long) res);
f.tc = NULL;
} else {
bflags = dtc->GetFlags ();
res = self->input->input->StartStreams ();
if (res != S_OK) {
GST_ELEMENT_ERROR (self, STREAM, FAILED,
- (NULL), ("Failed to start streams: 0x%08lx", res));
+ (NULL), ("Failed to start streams: 0x%08lx", (unsigned long) res));
return;
}
} else {
res = self->input->input->StopStreams ();
if (res != S_OK) {
GST_ELEMENT_ERROR (self, STREAM, FAILED,
- (NULL), ("Failed to stop streams: 0x%08lx", res));
+ (NULL), ("Failed to stop streams: 0x%08lx", (unsigned long) res));
ret = GST_STATE_CHANGE_FAILURE;
}
break;