mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-02 12:32:29 +00:00
wrap up some necessary gstreamer functions in functions of our own
Original commit message from CVS: wrap up some necessary gstreamer functions in functions of our own
This commit is contained in:
parent
b66d124abc
commit
cc292ead19
1 changed files with 21 additions and 0 deletions
21
swig/gstswig.c
Normal file
21
swig/gstswig.c
Normal file
|
@ -0,0 +1,21 @@
|
|||
/* let's get gstreamer to work with swig and do perl */
|
||||
#include <gst/gst.h>
|
||||
|
||||
void init ()
|
||||
{
|
||||
int argc = 2;
|
||||
char **argv = NULL;
|
||||
|
||||
argv = (char **) malloc (sizeof (char *) * 2);
|
||||
argv[0] = (char *) malloc (80);
|
||||
argv[1] = (char *) malloc (80);
|
||||
strcpy (argv[0], "swigged gst");
|
||||
strcpy (argv[1], "--gst-debug-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);
|
||||
}
|
Loading…
Reference in a new issue