diff options
author | Alexey Chernov <4ernov@gmail.com> | 2012-12-10 11:44:26 +0000 |
---|---|---|
committer | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2012-12-10 11:45:10 +0000 |
commit | d4622c974f330afc44435e1327feee99c64e870d (patch) | |
tree | dee1df1e0d95c7f40df0c4da770dd50a00992d03 /sys | |
parent | 527c21853352ff3c9c26edf508cc2395410c7817 (diff) |
osxvideosink: Fix resizing the Cocoa window on receiving new caps
Fixes bug #689732.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/osxvideo/osxvideosink.m | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/osxvideo/osxvideosink.m b/sys/osxvideo/osxvideosink.m index f14d998d6..349216421 100644 --- a/sys/osxvideo/osxvideosink.m +++ b/sys/osxvideo/osxvideosink.m @@ -837,7 +837,8 @@ gst_osx_video_sink_get_type (void) NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; GST_INFO_OBJECT (osxvideosink, "resizing"); - [osxwindow->gstview setVideoSize:osxwindow->width :osxwindow->height]; + NSSize size = {osxwindow->width, osxwindow->height}; + [osxwindow->win setContentSize:size]; GST_INFO_OBJECT (osxvideosink, "done"); [pool release]; |