osxvideosink: Fix resizing the Cocoa window on receiving new caps
authorAlexey Chernov <4ernov@gmail.com>
Mon, 10 Dec 2012 11:44:26 +0000 (11:44 +0000)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Mon, 10 Dec 2012 11:45:10 +0000 (11:45 +0000)
Fixes bug #689732.

sys/osxvideo/osxvideosink.m

index f14d998..3492164 100644 (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];