mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-20 07:16:55 +00:00
examples: initialize NSApp at the beginning
This commit is contained in:
parent
d3b3887c52
commit
74b8117e53
1 changed files with 3 additions and 3 deletions
|
@ -166,6 +166,9 @@ int main(int argc, char **argv)
|
||||||
NSRect rect;
|
NSRect rect;
|
||||||
MainWindow *window=nil;
|
MainWindow *window=nil;
|
||||||
|
|
||||||
|
pool = [[NSAutoreleasePool alloc] init];
|
||||||
|
[NSApplication sharedApplication];
|
||||||
|
|
||||||
g_print("app created\n");
|
g_print("app created\n");
|
||||||
|
|
||||||
gst_init (&argc, &argv);
|
gst_init (&argc, &argv);
|
||||||
|
@ -192,9 +195,6 @@ int main(int argc, char **argv)
|
||||||
if (!ok)
|
if (!ok)
|
||||||
g_warning("could not link videosrc to videosink\n");
|
g_warning("could not link videosrc to videosink\n");
|
||||||
|
|
||||||
pool = [[NSAutoreleasePool alloc] init];
|
|
||||||
[NSApplication sharedApplication];
|
|
||||||
|
|
||||||
rect.origin.x = 0; rect.origin.y = 0;
|
rect.origin.x = 0; rect.origin.y = 0;
|
||||||
rect.size.width = width; rect.size.height = height;
|
rect.size.width = width; rect.size.height = height;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue