osxvideosink: Fix resizing the Cocoa window on receiving new caps

Fixes bug #689732.
This commit is contained in:
Alexey Chernov 2012-12-10 11:44:26 +00:00 committed by Sebastian Dröge
parent 527c218533
commit d4622c974f

View file

@ -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];