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:50:47 +0000
commita1e38e7a743181f9694fb788371da9d05866d1e4 (patch)
treec74988a1dba12daaf07e82b41df462e1c2f2eceb /sys
parentb3de4cc9cd6354ed9ed9c2b04bc536ca8f83c4a9 (diff)
downloadgstreamer-plugins-good-a1e38e7a743181f9694fb788371da9d05866d1e4.tar.gz
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 3ee25803b..2e239e8d6 100644
--- a/sys/osxvideo/osxvideosink.m
+++ b/sys/osxvideo/osxvideosink.m
@@ -862,7 +862,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];