From d4622c974f330afc44435e1327feee99c64e870d Mon Sep 17 00:00:00 2001 From: Alexey Chernov <4ernov@gmail.com> Date: Mon, 10 Dec 2012 11:44:26 +0000 Subject: [PATCH] osxvideosink: Fix resizing the Cocoa window on receiving new caps Fixes bug #689732. --- sys/osxvideo/osxvideosink.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/osxvideo/osxvideosink.m b/sys/osxvideo/osxvideosink.m index f14d998d68..3492164213 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];