mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
decklink: Fix indentation
This commit is contained in:
parent
d8327b397d
commit
8be08ee7fd
2 changed files with 11 additions and 5 deletions
|
@ -529,7 +529,8 @@ static void gst_decklink_audio_sink_finalize (GObject * object);
|
|||
|
||||
static GstStateChangeReturn gst_decklink_audio_sink_change_state (GstElement *
|
||||
element, GstStateChange transition);
|
||||
static GstCaps * gst_decklink_audio_sink_get_caps (GstBaseSink * bsink, GstCaps * filter);
|
||||
static GstCaps *gst_decklink_audio_sink_get_caps (GstBaseSink * bsink,
|
||||
GstCaps * filter);
|
||||
static GstAudioRingBuffer
|
||||
* gst_decklink_audio_sink_create_ringbuffer (GstAudioBaseSink * absink);
|
||||
|
||||
|
@ -553,7 +554,8 @@ gst_decklink_audio_sink_class_init (GstDecklinkAudioSinkClass * klass)
|
|||
element_class->change_state =
|
||||
GST_DEBUG_FUNCPTR (gst_decklink_audio_sink_change_state);
|
||||
|
||||
basesink_class->get_caps = GST_DEBUG_FUNCPTR (gst_decklink_audio_sink_get_caps);
|
||||
basesink_class->get_caps =
|
||||
GST_DEBUG_FUNCPTR (gst_decklink_audio_sink_get_caps);
|
||||
|
||||
audiobasesink_class->create_ringbuffer =
|
||||
GST_DEBUG_FUNCPTR (gst_decklink_audio_sink_create_ringbuffer);
|
||||
|
@ -672,7 +674,9 @@ gst_decklink_audio_sink_get_caps (GstBaseSink * bsink, GstCaps * filter)
|
|||
GValue arr = G_VALUE_INIT;
|
||||
GValue v = G_VALUE_INIT;
|
||||
|
||||
ret = buf->output->attributes->GetInt (BMDDeckLinkMaximumAudioChannels, &max_channels);
|
||||
ret =
|
||||
buf->output->attributes->GetInt (BMDDeckLinkMaximumAudioChannels,
|
||||
&max_channels);
|
||||
/* 2 should always be supported */
|
||||
if (ret != S_OK) {
|
||||
max_channels = 2;
|
||||
|
@ -702,7 +706,8 @@ gst_decklink_audio_sink_get_caps (GstBaseSink * bsink, GstCaps * filter)
|
|||
}
|
||||
|
||||
if (filter) {
|
||||
GstCaps *intersection = gst_caps_intersect_full (filter, caps, GST_CAPS_INTERSECT_FIRST);
|
||||
GstCaps *intersection =
|
||||
gst_caps_intersect_full (filter, caps, GST_CAPS_INTERSECT_FIRST);
|
||||
gst_caps_unref (caps);
|
||||
caps = intersection;
|
||||
}
|
||||
|
|
|
@ -651,7 +651,8 @@ gst_decklink_video_sink_prepare (GstBaseSink * bsink, GstBuffer * buffer)
|
|||
* https://bugzilla.gnome.org/show_bug.cgi?id=770282
|
||||
*/
|
||||
ret = self->output->output->ScheduleVideoFrame (frame,
|
||||
running_time / GST_MSECOND, running_time_duration / GST_MSECOND, GST_MSECOND);
|
||||
running_time / GST_MSECOND, running_time_duration / GST_MSECOND,
|
||||
GST_MSECOND);
|
||||
if (ret != S_OK) {
|
||||
GST_ELEMENT_ERROR (self, STREAM, FAILED,
|
||||
(NULL), ("Failed to schedule frame: 0x%08x", ret));
|
||||
|
|
Loading…
Reference in a new issue