mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-05 09:00:54 +00:00
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:
parent
87492442d5
commit
60060685d8
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue