mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 01:30:38 +00:00
osxvideosink: Fix resizing the Cocoa window on receiving new caps
Fixes bug #689732.
This commit is contained in:
parent
527c218533
commit
d4622c974f
1 changed files with 2 additions and 1 deletions
|
@ -837,7 +837,8 @@ gst_osx_video_sink_get_type (void)
|
||||||
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
|
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
|
||||||
|
|
||||||
GST_INFO_OBJECT (osxvideosink, "resizing");
|
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");
|
GST_INFO_OBJECT (osxvideosink, "done");
|
||||||
|
|
||||||
[pool release];
|
[pool release];
|
||||||
|
|
Loading…
Reference in a new issue