examples: d3d11: Fix GCC build error/warning

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3318>
This commit is contained in:
Seungha Yang 2022-11-03 23:40:00 +09:00
parent f7cc753274
commit 6d46a9c3c7
2 changed files with 1 additions and 8 deletions
subprojects/gst-plugins-bad/tests/examples/d3d11

View file

@ -186,7 +186,7 @@ create_video_processor (AppData * data)
ComPtr < ID3D11VideoContext1 > video_context; ComPtr < ID3D11VideoContext1 > video_context;
ComPtr < ID3D11VideoProcessorEnumerator > proc_enum; ComPtr < ID3D11VideoProcessorEnumerator > proc_enum;
ComPtr < ID3D11VideoProcessor > processor; ComPtr < ID3D11VideoProcessor > processor;
D3D11_VIDEO_PROCESSOR_CONTENT_DESC desc = { 0, }; D3D11_VIDEO_PROCESSOR_CONTENT_DESC desc;
HRESULT hr; HRESULT hr;
hr = data->device->QueryInterface (IID_PPV_ARGS (&video_device)); hr = data->device->QueryInterface (IID_PPV_ARGS (&video_device));

View file

@ -476,12 +476,6 @@ on_present (GstElement * sink, GstD3D11Device * device,
&text_brush); &text_brush);
g_assert (SUCCEEDED (hr)); g_assert (SUCCEEDED (hr));
D2D1_RECT_F rect;
rect.top = 0;
rect.bottom = 0;
rect.right = desc.Width;
rect.bottom = desc.Height / 5.0f;
d2d_target->BeginDraw (); d2d_target->BeginDraw ();
/* Draw text */ /* Draw text */
d2d_target->DrawTextLayout (D2D1::Point2F (0, 0), d2d_target->DrawTextLayout (D2D1::Point2F (0, 0),
@ -512,7 +506,6 @@ framerate_calculate_probe (GstPad * pad, GstPadProbeInfo * info,
std::swap (context->render_timestamp, empty_queue); std::swap (context->render_timestamp, empty_queue);
} }
out:
ReleaseSRWLockExclusive (&context->lock); ReleaseSRWLockExclusive (&context->lock);
return GST_PAD_PROBE_OK; return GST_PAD_PROBE_OK;