#include #include #include #include #include int main(int argc, char *argv[]) { GstElement *pipeline; char **argvn; gchar *cmdline; int i; gst_init (&argc, &argv); pipeline = gst_pipeline_new ("launch"); // make a null-terminated version of argv argvn = g_new0 (char *,argc); memcpy (argvn, argv+1, sizeof (char*) * (argc-1)); // escape spaces for (i=0; i