     // resizes the window so the video fills the entire screen without cropping
     @IBAction func sizeWindowToFill(_ sender: AnyObject?)
     {
-        if (videoNaturalSize == CGSize.zero) {
-            return
-        }
+        guard aspectRatioSet else { return }
         
         Preferences.SharedPreferences().lastVideoWindowScale = 100.0
         

import AVFoundation
import AVKit
import WWDCAppKit

private let _nibName = "VideoWindowController"


    // resizes the window to a fraction of the video's size
    func sizeWindowTo(_ fraction: CGFloat)
    {
        guard aspectRatioSet else { return }
        
        Preferences.SharedPreferences().lastVideoWindowScale = fraction
        
