diff options
author | Andoni Morales Alastruey <ylatuya@gmail.com> | 2013-04-12 19:17:47 +0200 |
---|---|---|
committer | Andoni Morales Alastruey <ylatuya@gmail.com> | 2013-04-16 17:42:46 +0200 |
commit | 584c6fafeccb47ff5a0ce8cd2fc55f764223b2d0 (patch) | |
tree | 9b56cc6a57b2da000713e3d396af2fd681c9efcc | |
parent | da9a4a99fb1452462be9dc632c6a6ecc9b1e1c4c (diff) |
xcode:ios: add a modified main.m initializing gstreamer
-rw-r--r-- | data/xcode/templates/ios/GStreamer Base.xctemplate/TemplateInfo.plist | 8 | ||||
-rw-r--r-- | data/xcode/templates/ios/GStreamer Base.xctemplate/main.m | 13 |
2 files changed, 21 insertions, 0 deletions
diff --git a/data/xcode/templates/ios/GStreamer Base.xctemplate/TemplateInfo.plist b/data/xcode/templates/ios/GStreamer Base.xctemplate/TemplateInfo.plist index acb25fa..cbb731a 100644 --- a/data/xcode/templates/ios/GStreamer Base.xctemplate/TemplateInfo.plist +++ b/data/xcode/templates/ios/GStreamer Base.xctemplate/TemplateInfo.plist @@ -37,6 +37,13 @@ <key>Path</key> <string>gst_ios_plugins.c</string> </dict> + <key>main.m</key> + <dict> + <key>Group</key> + <string>Supporting Files</string> + <key>Path</key> + <string>main.m</string> + </dict> </dict> <!-- Definitions End --> @@ -47,6 +54,7 @@ <string>gst_ios_backend.h</string> <string>gst_ios_plugins.c</string> <string>gst_ios_plugins.h</string> + <string>main.m</string> </array> <!-- Nodes End --> diff --git a/data/xcode/templates/ios/GStreamer Base.xctemplate/main.m b/data/xcode/templates/ios/GStreamer Base.xctemplate/main.m new file mode 100644 index 0000000..05c328c --- /dev/null +++ b/data/xcode/templates/ios/GStreamer Base.xctemplate/main.m @@ -0,0 +1,13 @@ + +#import <UIKit/UIKit.h> + +#import "AppDelegate.h" +#include "gst_ios_backend.h" + +int main(int argc, char *argv[]) +{ + @autoreleasepool { + gst_backend_init(); + return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); + } +} |