osxvideosink->osxwindow->gstview,
@selector(addToSuperview:), osxvideosink->superview, YES);
}
+
+ if (window_id) {
+ osxvideosink->osxwindow->internal = FALSE;
+ }
}
static void
GST_INFO_OBJECT (osxvideosink, "resizing");
NSSize size = {osxwindow->width, osxwindow->height};
- [osxwindow->win setContentSize:size];
+ if (osxwindow->internal) {
+ [osxwindow->win setContentSize:size];
+ }
+ if (osxwindow->gstview) {
+ [osxwindow->gstview setVideoSize :(int)osxwindow->width :(int)osxwindow->height];
+ }
GST_INFO_OBJECT (osxvideosink, "done");
[pool release];