mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-20 21:16:24 +00:00
d3d12screencapturesrc: Fix infinite negotiation on resolution change
Updates crop rect if previous capture got error. The error might result from resolution change. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8444>
This commit is contained in:
parent
1902b5ca1b
commit
967ab2dc50
1 changed files with 1 additions and 1 deletions
|
@ -1312,6 +1312,7 @@ gst_d3d12_screen_capture_src_dxgi_capture (GstBaseSrc * bsrc,
|
||||||
if (fps_n <= 0 || fps_d <= 0)
|
if (fps_n <= 0 || fps_d <= 0)
|
||||||
return GST_FLOW_NOT_NEGOTIATED;
|
return GST_FLOW_NOT_NEGOTIATED;
|
||||||
|
|
||||||
|
again:
|
||||||
{
|
{
|
||||||
std::lock_guard < std::recursive_mutex > lk (priv->lock);
|
std::lock_guard < std::recursive_mutex > lk (priv->lock);
|
||||||
draw_mouse = priv->show_cursor;
|
draw_mouse = priv->show_cursor;
|
||||||
|
@ -1328,7 +1329,6 @@ gst_d3d12_screen_capture_src_dxgi_capture (GstBaseSrc * bsrc,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
again:
|
|
||||||
auto clock = gst_element_get_clock (GST_ELEMENT_CAST (self));
|
auto clock = gst_element_get_clock (GST_ELEMENT_CAST (self));
|
||||||
|
|
||||||
/* Check flushing before waiting clock because we are might be doing
|
/* Check flushing before waiting clock because we are might be doing
|
||||||
|
|
Loading…
Reference in a new issue