vulkan/ios: initialize the frame to the parent's

This commit is contained in:
Matthew Waters 2019-08-06 12:38:41 +10:00
parent 61a7707eca
commit c8614bf4da

View file

@ -137,8 +137,8 @@ static void
_create_window (GstVulkanWindowIos * window_ios)
{
GstVulkanWindowIosPrivate *priv = window_ios->priv;
CGRect rect = CGRectMake (0, 0, priv->preferred_width, priv->preferred_height);
UIView *external_view = (__bridge UIView *) priv->external_view;
CGRect rect = CGRectMake (0, 0, external_view.frame.size.width, external_view.frame.size.height);
GstVulkanUIView *view;
view = [[GstVulkanUIView alloc] initWithFrame:rect];