[MPlayer-cvslog] CVS: main/libvo vo_macosx.m,1.28,1.29
Nicolas Plourde CVS
syncmail at mplayerhq.hu
Fri Jul 29 00:19:37 CEST 2005
CVS change done by Nicolas Plourde CVS
Update of /cvsroot/mplayer/main/libvo
In directory mail:/var2/tmp/cvs-serv25625/libvo
Modified Files:
vo_macosx.m
Log Message:
properly release window
Index: vo_macosx.m
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/vo_macosx.m,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -r1.28 -r1.29
--- vo_macosx.m 24 Jul 2005 15:16:27 -0000 1.28
+++ vo_macosx.m 28 Jul 2005 22:19:34 -0000 1.29
@@ -134,6 +134,7 @@
//config OpenGL View
[mpGLView config];
+ [mpGLView reshape];
return 0;
}
@@ -244,8 +245,13 @@
autoreleasepool = [[NSAutoreleasePool alloc] init];
NSApp = [NSApplication sharedApplication];
- mpGLView = [[MPlayerOpenGLView alloc] initWithFrame:NSMakeRect(0, 0, 0, 0) pixelFormat:[MPlayerOpenGLView defaultPixelFormat]];
- [mpGLView autorelease];
+ if(!mpGLView)
+ {
+ mpGLView = [[MPlayerOpenGLView alloc] initWithFrame:NSMakeRect(0, 0, 100, 100) pixelFormat:[MPlayerOpenGLView defaultPixelFormat]];
+ [mpGLView autorelease];
+ }
+
+ [mpGLView display];
[mpGLView preinit];
return 0;
@@ -281,6 +287,7 @@
styleMask:NSTitledWindowMask|NSTexturedBackgroundWindowMask|NSClosableWindowMask|NSMiniaturizableWindowMask|NSResizableWindowMask
backing:NSBackingStoreBuffered defer:NO];
+ [window autorelease];
[window setDelegate:mpGLView];
[window setContentView:mpGLView];
[window setInitialFirstResponder:mpGLView];
More information about the MPlayer-cvslog
mailing list