examples: initialize NSApp at the beginning

This commit is contained in:
Julien Isorce 2015-03-13 09:07:16 +00:00
parent 90f0cfceb7
commit 5667d34182

View file

@ -166,6 +166,9 @@ int main(int argc, char **argv)
NSRect rect;
MainWindow *window=nil;
pool = [[NSAutoreleasePool alloc] init];
[NSApplication sharedApplication];
g_print("app created\n");
gst_init (&argc, &argv);
@ -192,9 +195,6 @@ int main(int argc, char **argv)
if (!ok)
g_warning("could not link videosrc to videosink\n");
pool = [[NSAutoreleasePool alloc] init];
[NSApplication sharedApplication];
rect.origin.x = 0; rect.origin.y = 0;
rect.size.width = width; rect.size.height = height;