mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 14:26:43 +00:00
examples: d3d11: Fix GCC build error/warning
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3318>
This commit is contained in:
parent
f7cc753274
commit
6d46a9c3c7
2 changed files with 1 additions and 8 deletions
|
@ -186,7 +186,7 @@ create_video_processor (AppData * data)
|
|||
ComPtr < ID3D11VideoContext1 > video_context;
|
||||
ComPtr < ID3D11VideoProcessorEnumerator > proc_enum;
|
||||
ComPtr < ID3D11VideoProcessor > processor;
|
||||
D3D11_VIDEO_PROCESSOR_CONTENT_DESC desc = { 0, };
|
||||
D3D11_VIDEO_PROCESSOR_CONTENT_DESC desc;
|
||||
HRESULT hr;
|
||||
|
||||
hr = data->device->QueryInterface (IID_PPV_ARGS (&video_device));
|
||||
|
|
|
@ -476,12 +476,6 @@ on_present (GstElement * sink, GstD3D11Device * device,
|
|||
&text_brush);
|
||||
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 ();
|
||||
/* Draw text */
|
||||
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);
|
||||
}
|
||||
|
||||
out:
|
||||
ReleaseSRWLockExclusive (&context->lock);
|
||||
|
||||
return GST_PAD_PROBE_OK;
|
||||
|
|
Loading…
Reference in a new issue