mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 06:46:38 +00:00
d3dvideosink: Deactivate the fallback pool and unref the fallback buffer when resetting
Otherwise we will still have a reference to the surface left, which would prevent activating the sink again later. E.g. after we lost the device. Hopefully fixes https://bugzilla.gnome.org/show_bug.cgi?id=744615
This commit is contained in:
parent
f79d9522c5
commit
d1d31dae6d
1 changed files with 4 additions and 0 deletions
|
@ -1342,6 +1342,10 @@ d3d_release_swap_chain (GstD3DVideoSink * sink)
|
||||||
goto end;
|
goto end;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
gst_buffer_replace (&sink->fallback_buffer, NULL);
|
||||||
|
if (sink->fallback_pool)
|
||||||
|
gst_buffer_pool_set_active (sink->fallback_pool, FALSE);
|
||||||
|
|
||||||
if (sink->d3d.swapchain) {
|
if (sink->d3d.swapchain) {
|
||||||
ref_count = IDirect3DSwapChain9_Release (sink->d3d.swapchain);
|
ref_count = IDirect3DSwapChain9_Release (sink->d3d.swapchain);
|
||||||
sink->d3d.swapchain = NULL;
|
sink->d3d.swapchain = NULL;
|
||||||
|
|
Loading…
Reference in a new issue