d3d11: Run indent

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3250>
This commit is contained in:
Seungha Yang 2022-10-22 02:48:23 +09:00 committed by GStreamer Marge Bot
parent 1ec4905e92
commit 31be056b6e
2 changed files with 18 additions and 20 deletions

View file

@ -276,8 +276,7 @@ gst_d3d11_screen_capture_src_class_init (GstD3D11ScreenCaptureSrcClass * klass)
gst_element_class_set_static_metadata (element_class,
"Direct3D11 screen capture src", "Source/Video",
"Captures desktop screen",
"Seungha Yang <seungha@centricular.com>");
"Captures desktop screen", "Seungha Yang <seungha@centricular.com>");
caps = gst_d3d11_get_updated_template_caps (&template_caps);
gst_element_class_add_pad_template (element_class,
@ -917,7 +916,8 @@ gst_d3d11_screen_capture_src_start (GstBaseSrc * bsrc)
gst_clear_object (&capture);
GST_WARNING_OBJECT (self, "DXGI capture is not available");
capture = gst_d3d11_winrt_capture_new (self->device, monitor, nullptr);
if (capture && gst_d3d11_screen_capture_prepare (capture) == GST_FLOW_OK) {
if (capture
&& gst_d3d11_screen_capture_prepare (capture) == GST_FLOW_OK) {
GST_INFO_OBJECT (self, "Fallback to Windows Graphics Capture");
break;
}

View file

@ -908,8 +908,7 @@ again:
if (size.Width != self->pool_size.Width ||
size.Height != self->pool_size.Height) {
GST_DEBUG_OBJECT (self, "Size changed %dx%d -> %dx%d",
self->pool_size.Width, self->pool_size.Height,
size.Width, size.Height);
self->pool_size.Width, self->pool_size.Height, size.Width, size.Height);
self->pool_size = size;
frame = nullptr;
hr = inner->pool->Recreate (inner->d3d_device.Get (),
@ -989,4 +988,3 @@ gst_d3d11_winrt_capture_new (GstD3D11Device * device, HMONITOR monitor_handle,
return GST_D3D11_SCREEN_CAPTURE_CAST (self);
}