#include <gst/gst.h>
#include <string.h>
+#ifdef __APPLE__
+#include <TargetConditionals.h>
+#endif
+
typedef struct _CustomData
{
gboolean is_live;
}
int
-main (int argc, char *argv[])
+tutorial_main (int argc, char *argv[])
{
GstElement *pipeline;
GstBus *bus;
gst_object_unref (pipeline);
return 0;
}
+
+int
+main (int argc, char *argv[])
+{
+#if defined(__APPLE__) && TARGET_OS_MAC && !TARGET_OS_IPHONE
+ return gst_macos_main (tutorial_main, argc, argv, NULL);
+#else
+ return tutorial_main (argc, argv);
+#endif
+}