mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-13 09:45:27 +00:00
23 lines
596 B
C
23 lines
596 B
C
/* let's get gstreamer to work with swig and do perl */
|
|
#include <gst/gst.h>
|
|
|
|
void init ()
|
|
{
|
|
int argc = 3;
|
|
char **argv = NULL;
|
|
|
|
argv = (char **) malloc (sizeof (char *) * 3);
|
|
argv[0] = (char *) malloc (80);
|
|
argv[1] = (char *) malloc (80);
|
|
argv[2] = (char *) malloc (80);
|
|
strcpy (argv[0], "swigged gst");
|
|
strcpy (argv[1], "--gst-debug-mask=-1");
|
|
strcpy (argv[2], "--gst-info-mask=-1");
|
|
|
|
gst_init (&argc, &argv);
|
|
}
|
|
|
|
void gobject_set (GtkObject* object, const gchar *first_arg_name, const gchar *first_arg_value)
|
|
{
|
|
gtk_object_set (object, first_arg_name, first_arg_value);
|
|
}
|