summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorAlexey Chernov <4ernov@gmail.com>2012-12-10 11:44:26 +0000
committerSebastian Dröge <sebastian.droege@collabora.co.uk>2012-12-10 11:45:10 +0000
commitd4622c974f330afc44435e1327feee99c64e870d (patch)
treedee1df1e0d95c7f40df0c4da770dd50a00992d03 /sys
parent527c21853352ff3c9c26edf508cc2395410c7817 (diff)
osxvideosink: Fix resizing the Cocoa window on receiving new caps
Fixes bug #689732.
Diffstat (limited to 'sys')
-rw-r--r--sys/osxvideo/osxvideosink.m3
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];