From fb226f4733d2c1e18ea78bf08b88c23076456af2 Mon Sep 17 00:00:00 2001 From: Seungha Yang Date: Fri, 8 Apr 2022 04:02:55 +0900 Subject: [PATCH] d3d11: Run indent Part-of: --- .../gst-plugins-bad/sys/d3d11/gstd3d11av1dec.cpp | 2 +- .../sys/d3d11/gstd3d11screencapturesrc.cpp | 3 +-- .../gst-plugins-bad/sys/d3d11/gstd3d11videosink.cpp | 20 +++++++++++++++----- 3 files changed, 17 insertions(+), 8 deletions(-) diff --git a/subprojects/gst-plugins-bad/sys/d3d11/gstd3d11av1dec.cpp b/subprojects/gst-plugins-bad/sys/d3d11/gstd3d11av1dec.cpp index 591a729..b339a37 100644 --- a/subprojects/gst-plugins-bad/sys/d3d11/gstd3d11av1dec.cpp +++ b/subprojects/gst-plugins-bad/sys/d3d11/gstd3d11av1dec.cpp @@ -427,7 +427,7 @@ static GstFlowReturn gst_d3d11_av1_dec_new_sequence (GstAV1Decoder * decoder, static GstFlowReturn gst_d3d11_av1_dec_new_picture (GstAV1Decoder * decoder, GstVideoCodecFrame * frame, GstAV1Picture * picture); static GstAV1Picture *gst_d3d11_av1_dec_duplicate_picture (GstAV1Decoder * - decoder, GstVideoCodecFrame * frame, GstAV1Picture * picture); + decoder, GstVideoCodecFrame * frame, GstAV1Picture * picture); static GstFlowReturn gst_d3d11_av1_dec_start_picture (GstAV1Decoder * decoder, GstAV1Picture * picture, GstAV1Dpb * dpb); static GstFlowReturn gst_d3d11_av1_dec_decode_tile (GstAV1Decoder * decoder, diff --git a/subprojects/gst-plugins-bad/sys/d3d11/gstd3d11screencapturesrc.cpp b/subprojects/gst-plugins-bad/sys/d3d11/gstd3d11screencapturesrc.cpp index 2e7b301..6c31409 100644 --- a/subprojects/gst-plugins-bad/sys/d3d11/gstd3d11screencapturesrc.cpp +++ b/subprojects/gst-plugins-bad/sys/d3d11/gstd3d11screencapturesrc.cpp @@ -549,8 +549,7 @@ gst_d3d11_screen_capture_src_decide_allocation (GstBaseSrc * bsrc, /* d3d11 buffer pool will update buffer size based on allocated texture, * get size from config again */ config = gst_buffer_pool_get_config (pool); - gst_buffer_pool_config_get_params (config, - nullptr, &size, nullptr, nullptr); + gst_buffer_pool_config_get_params (config, nullptr, &size, nullptr, nullptr); gst_structure_free (config); if (!self->downstream_supports_d3d11) { diff --git a/subprojects/gst-plugins-bad/sys/d3d11/gstd3d11videosink.cpp b/subprojects/gst-plugins-bad/sys/d3d11/gstd3d11videosink.cpp index 02ea4f0..7bdc29e 100644 --- a/subprojects/gst-plugins-bad/sys/d3d11/gstd3d11videosink.cpp +++ b/subprojects/gst-plugins-bad/sys/d3d11/gstd3d11videosink.cpp @@ -692,9 +692,13 @@ gst_d3d11_video_sink_key_event (GstD3D11Window * window, const gchar * event, if (self->enable_navigation_events) { GST_LOG_OBJECT (self, "send key event %s, key %s", event, key); if (0 == g_strcmp0 ("key-press", event)) - key_event = gst_navigation_event_new_key_press (key, GST_NAVIGATION_MODIFIER_NONE); + key_event = + gst_navigation_event_new_key_press (key, + GST_NAVIGATION_MODIFIER_NONE); else if (0 == g_strcmp0 ("key-release", event)) - key_event = gst_navigation_event_new_key_release (key, GST_NAVIGATION_MODIFIER_NONE); + key_event = + gst_navigation_event_new_key_release (key, + GST_NAVIGATION_MODIFIER_NONE); if (event) gst_navigation_send_event_simple (GST_NAVIGATION (self), key_event); @@ -711,11 +715,17 @@ gst_d3d11_video_mouse_key_event (GstD3D11Window * window, const gchar * event, GST_LOG_OBJECT (self, "send mouse event %s, button %d (%.1f, %.1f)", event, button, x, y); if (0 == g_strcmp0 ("mouse-button-press", event)) - mouse_event = gst_navigation_event_new_mouse_button_press (button, x, y, GST_NAVIGATION_MODIFIER_NONE); + mouse_event = + gst_navigation_event_new_mouse_button_press (button, x, y, + GST_NAVIGATION_MODIFIER_NONE); else if (0 == g_strcmp0 ("mouse-button-release", event)) - mouse_event = gst_navigation_event_new_mouse_button_release (button, x, y, GST_NAVIGATION_MODIFIER_NONE); + mouse_event = + gst_navigation_event_new_mouse_button_release (button, x, y, + GST_NAVIGATION_MODIFIER_NONE); else if (0 == g_strcmp0 ("mouse-move", event)) - mouse_event = gst_navigation_event_new_mouse_move (x, y, GST_NAVIGATION_MODIFIER_NONE); + mouse_event = + gst_navigation_event_new_mouse_move (x, y, + GST_NAVIGATION_MODIFIER_NONE); if (event) gst_navigation_send_event_simple (GST_NAVIGATION (self), mouse_event); -- 2.7.4