d3d11videosink: Fix for force-aspect-ratio setting when rendering on shared texture

Set specified force-aspect-ratio value on window object
in case of shared texture rendering as well

Fixes: https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/1304
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2701>
This commit is contained in:
Seungha Yang 2022-06-28 17:40:56 +09:00 committed by GStreamer Marge Bot
parent 87492442d5
commit 60060685d8

View file

@ -733,7 +733,7 @@ gst_d3d11_video_sink_prepare_window (GstD3D11VideoSink * self)
GST_INFO_OBJECT (self,
"Create dummy window for rendering on shared texture");
self->window = gst_d3d11_window_dummy_new (self->device);
return TRUE;
goto done;
}
if (!self->window_id)
@ -782,6 +782,7 @@ gst_d3d11_video_sink_prepare_window (GstD3D11VideoSink * self)
break;
}
done:
if (!self->window) {
GST_ERROR_OBJECT (self, "Cannot create d3d11window");
return FALSE;