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/2671>
This commit is contained in:
Seungha Yang 2022-06-28 17:40:56 +09:00 committed by GStreamer Marge Bot
parent 236378c9d5
commit 1043481247

View file

@ -760,7 +760,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)
@ -809,6 +809,7 @@ gst_d3d11_video_sink_prepare_window (GstD3D11VideoSink * self)
break;
}
done:
if (!self->window) {
GST_ERROR_OBJECT (self, "Cannot create d3d11window");
return FALSE;