mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-07 07:58:51 +00:00
decklink: Fix indention once again
This commit is contained in:
parent
81c1ef190d
commit
478deb4805
2 changed files with 6 additions and 6 deletions
|
@ -410,7 +410,7 @@ gst_decklink_audio_src_create (GstPushSrc * bsrc, GstBuffer ** buffer)
|
||||||
else
|
else
|
||||||
start_offset = 0;
|
start_offset = 0;
|
||||||
|
|
||||||
if (self->next_offset == (guint64) -1) {
|
if (self->next_offset == (guint64) - 1) {
|
||||||
discont = TRUE;
|
discont = TRUE;
|
||||||
} else {
|
} else {
|
||||||
guint64 diff, max_sample_diff;
|
guint64 diff, max_sample_diff;
|
||||||
|
@ -445,7 +445,7 @@ gst_decklink_audio_src_create (GstPushSrc * bsrc, GstBuffer ** buffer)
|
||||||
|
|
||||||
if (discont) {
|
if (discont) {
|
||||||
// Have discont, need resync and use the capture timestamps
|
// Have discont, need resync and use the capture timestamps
|
||||||
if (self->next_offset != (guint64) -1)
|
if (self->next_offset != (guint64) - 1)
|
||||||
GST_INFO_OBJECT (self, "Have discont. Expected %"
|
GST_INFO_OBJECT (self, "Have discont. Expected %"
|
||||||
G_GUINT64_FORMAT ", got %" G_GUINT64_FORMAT,
|
G_GUINT64_FORMAT ", got %" G_GUINT64_FORMAT,
|
||||||
self->next_offset, start_offset);
|
self->next_offset, start_offset);
|
||||||
|
|
|
@ -362,8 +362,7 @@ gst_decklink_video_src_query (GstBaseSrc * bsrc, GstQuery * query)
|
||||||
|
|
||||||
mode = gst_decklink_get_mode (self->mode);
|
mode = gst_decklink_get_mode (self->mode);
|
||||||
|
|
||||||
min =
|
min = gst_util_uint64_scale_ceil (GST_SECOND, mode->fps_d, mode->fps_n);
|
||||||
gst_util_uint64_scale_ceil (GST_SECOND, mode->fps_d, mode->fps_n);
|
|
||||||
max = self->buffer_size * min;
|
max = self->buffer_size * min;
|
||||||
|
|
||||||
gst_query_set_latency (query, TRUE, min, max);
|
gst_query_set_latency (query, TRUE, min, max);
|
||||||
|
@ -428,7 +427,7 @@ gst_decklink_video_src_open (GstDecklinkVideoSrc * self)
|
||||||
|
|
||||||
if (self->input->config) {
|
if (self->input->config) {
|
||||||
ret = self->input->config->SetInt (bmdDeckLinkConfigVideoInputConnection,
|
ret = self->input->config->SetInt (bmdDeckLinkConfigVideoInputConnection,
|
||||||
gst_decklink_get_connection(self->connection));
|
gst_decklink_get_connection (self->connection));
|
||||||
if (ret != S_OK) {
|
if (ret != S_OK) {
|
||||||
GST_ERROR_OBJECT (self, "Failed to set configuration (input source)");
|
GST_ERROR_OBJECT (self, "Failed to set configuration (input source)");
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
@ -438,7 +437,8 @@ gst_decklink_video_src_open (GstDecklinkVideoSrc * self)
|
||||||
ret = self->input->config->SetInt (bmdDeckLinkConfigAnalogVideoInputFlags,
|
ret = self->input->config->SetInt (bmdDeckLinkConfigAnalogVideoInputFlags,
|
||||||
bmdAnalogVideoFlagCompositeSetup75);
|
bmdAnalogVideoFlagCompositeSetup75);
|
||||||
if (ret != S_OK) {
|
if (ret != S_OK) {
|
||||||
GST_ERROR_OBJECT (self, "Failed to set configuration (composite setup)");
|
GST_ERROR_OBJECT (self,
|
||||||
|
"Failed to set configuration (composite setup)");
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue