mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 09:10:36 +00:00
gstreamer/gstreamer.py: Backwards compatibility module
Original commit message from CVS: 2004-02-23 Johan Dahlin <johan@gnome.org> * gstreamer/gstreamer.py: Backwards compatibility module * gstreamer/gstreamermodule.c: * gstreamer/Makefile.am: Rename the module to gst
This commit is contained in:
parent
eb8a787e53
commit
ade405ce0f
12 changed files with 90 additions and 29 deletions
|
@ -1,3 +1,10 @@
|
||||||
|
2004-02-23 Johan Dahlin <johan@gnome.org>
|
||||||
|
|
||||||
|
* gstreamer/gstreamer.py: Backwards compatibility module
|
||||||
|
|
||||||
|
* gstreamer/gstreamermodule.c:
|
||||||
|
* gstreamer/Makefile.am: Rename the module to gst
|
||||||
|
|
||||||
2004-02-18 David I. Lehn <dlehn@users.sourceforge.net>
|
2004-02-18 David I. Lehn <dlehn@users.sourceforge.net>
|
||||||
|
|
||||||
* gstreamer/0.7.defs:
|
* gstreamer/0.7.defs:
|
||||||
|
|
2
common
2
common
|
@ -1 +1 @@
|
||||||
Subproject commit d821172609916bc61bbbca7f8d2e6cf0ca1ab47a
|
Subproject commit 0945c85c4c9139e2e5b8e04d0fc841b8aa1e6e9b
|
|
@ -3,10 +3,17 @@ MODULE = gstreamer
|
||||||
INCLUDES = $(PYTHON_INCLUDES) $(PYGTK_CFLAGS)
|
INCLUDES = $(PYTHON_INCLUDES) $(PYGTK_CFLAGS)
|
||||||
PYGTK_DEFSDIR = @PYGTK_DEFSDIR@
|
PYGTK_DEFSDIR = @PYGTK_DEFSDIR@
|
||||||
|
|
||||||
pygstreamerdir = $(pythondir)/$(MODULE)
|
pkgpythondir = $(pythondir)/gst
|
||||||
pygstreamer_PYTHON = __init__.py
|
pkgpyexecdir = $(pyexecdir)/gst
|
||||||
|
|
||||||
pygstreamerexecdir = $(pyexecdir)/$(MODULE)
|
pygstdir = $(pkgpythondir)
|
||||||
|
pygst_PYTHON = __init__.py
|
||||||
|
|
||||||
|
# Backwards comptibility
|
||||||
|
pygstreamerdir = $(pythondir)
|
||||||
|
pygstreamer_PYTHON = gstreamer.py
|
||||||
|
|
||||||
|
pygstexecdir = $(pkgpyexecdir)
|
||||||
|
|
||||||
GST_OVERRIDES = common.override \
|
GST_OVERRIDES = common.override \
|
||||||
0.6.override \
|
0.6.override \
|
||||||
|
@ -27,15 +34,15 @@ if GST_0_7
|
||||||
VERSOURCES = 0.7.c 0.7.h
|
VERSOURCES = 0.7.c 0.7.h
|
||||||
endif
|
endif
|
||||||
|
|
||||||
pyexec_LTLIBRARIES = _gstreamermodule.la
|
pygstexec_LTLIBRARIES = _gstmodule.la
|
||||||
_gstreamermodule_la_SOURCES = \
|
_gstmodule_la_SOURCES = \
|
||||||
gstreamermodule.c \
|
gstreamermodule.c \
|
||||||
common.c common.h \
|
common.c common.h \
|
||||||
$(VERSOURCES)
|
$(VERSOURCES)
|
||||||
_gstreamermodule_la_CFLAGS = $(GST_CFLAGS) -fno-strict-aliasing
|
_gstmodule_la_CFLAGS = $(GST_CFLAGS) -fno-strict-aliasing
|
||||||
_gstreamermodule_la_LIBADD = $(GST_LIBS)
|
_gstmodule_la_LIBADD = $(GST_LIBS)
|
||||||
_gstreamermodule_la_LDFLAGS = -module -avoid-version -export-symbols-regex init_gstreamer
|
_gstmodule_la_LDFLAGS = -module -avoid-version -export-symbols-regex init_gst
|
||||||
nodist__gstreamermodule_la_SOURCES = gstreamer.c
|
nodist__gstmodule_la_SOURCES = gstreamer.c
|
||||||
|
|
||||||
CLEANFILES = $(MODULE).c h2def.defs $(MODULE).defs $(MODULE).override
|
CLEANFILES = $(MODULE).c h2def.defs $(MODULE).defs $(MODULE).override
|
||||||
EXTRA_DIST = $(GST_OVERRIDES) $(GST_DEFS) $(GST_CODE) arg-types.py
|
EXTRA_DIST = $(GST_OVERRIDES) $(GST_DEFS) $(GST_CODE) arg-types.py
|
||||||
|
|
|
@ -35,7 +35,7 @@ if os.path.exists(devloc):
|
||||||
sys.setdlopenflags(dl.RTLD_LAZY | dl.RTLD_GLOBAL)
|
sys.setdlopenflags(dl.RTLD_LAZY | dl.RTLD_GLOBAL)
|
||||||
del devloc, sys, os
|
del devloc, sys, os
|
||||||
|
|
||||||
from _gstreamer import *
|
from _gst import *
|
||||||
|
|
||||||
#from gtk import threads_init, threads_enter, threads_leave
|
#from gtk import threads_init, threads_enter, threads_leave
|
||||||
|
|
||||||
|
|
|
@ -34,7 +34,7 @@ void pygstreamer_add_constants(PyObject *module, const gchar *strip_prefix);
|
||||||
extern PyMethodDef pygstreamer_functions[];
|
extern PyMethodDef pygstreamer_functions[];
|
||||||
|
|
||||||
DL_EXPORT(void)
|
DL_EXPORT(void)
|
||||||
init_gstreamer (void)
|
init_gst (void)
|
||||||
{
|
{
|
||||||
PyObject *m, *d;
|
PyObject *m, *d;
|
||||||
PyObject *av;
|
PyObject *av;
|
||||||
|
@ -70,7 +70,7 @@ init_gstreamer (void)
|
||||||
g_free (argv);
|
g_free (argv);
|
||||||
}
|
}
|
||||||
|
|
||||||
m = Py_InitModule ("_gstreamer", pygstreamer_functions);
|
m = Py_InitModule ("gst._gst", pygstreamer_functions);
|
||||||
d = PyModule_GetDict (m);
|
d = PyModule_GetDict (m);
|
||||||
|
|
||||||
pygstreamer_register_classes (d);
|
pygstreamer_register_classes (d);
|
||||||
|
|
20
gst/gstreamer.py
Normal file
20
gst/gstreamer.py
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
#
|
||||||
|
# This library is free software; you can redistribute it and/or
|
||||||
|
# modify it under the terms of the GNU Library General Public
|
||||||
|
# License as published by the Free Software Foundation; either
|
||||||
|
# version 2 of the License, or (at your option) any later version.
|
||||||
|
#
|
||||||
|
# This library is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
# Library General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU Library General Public
|
||||||
|
# License along with this library; if not, write to the
|
||||||
|
# Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||||
|
# Boston, MA 02111-1307, USA.
|
||||||
|
#
|
||||||
|
# Author: David I. Lehn <dlehn@users.sourceforge.net>
|
||||||
|
#
|
||||||
|
|
||||||
|
from gst import *
|
|
@ -34,7 +34,7 @@ void pygstreamer_add_constants(PyObject *module, const gchar *strip_prefix);
|
||||||
extern PyMethodDef pygstreamer_functions[];
|
extern PyMethodDef pygstreamer_functions[];
|
||||||
|
|
||||||
DL_EXPORT(void)
|
DL_EXPORT(void)
|
||||||
init_gstreamer (void)
|
init_gst (void)
|
||||||
{
|
{
|
||||||
PyObject *m, *d;
|
PyObject *m, *d;
|
||||||
PyObject *av;
|
PyObject *av;
|
||||||
|
@ -70,7 +70,7 @@ init_gstreamer (void)
|
||||||
g_free (argv);
|
g_free (argv);
|
||||||
}
|
}
|
||||||
|
|
||||||
m = Py_InitModule ("_gstreamer", pygstreamer_functions);
|
m = Py_InitModule ("gst._gst", pygstreamer_functions);
|
||||||
d = PyModule_GetDict (m);
|
d = PyModule_GetDict (m);
|
||||||
|
|
||||||
pygstreamer_register_classes (d);
|
pygstreamer_register_classes (d);
|
||||||
|
|
|
@ -3,10 +3,17 @@ MODULE = gstreamer
|
||||||
INCLUDES = $(PYTHON_INCLUDES) $(PYGTK_CFLAGS)
|
INCLUDES = $(PYTHON_INCLUDES) $(PYGTK_CFLAGS)
|
||||||
PYGTK_DEFSDIR = @PYGTK_DEFSDIR@
|
PYGTK_DEFSDIR = @PYGTK_DEFSDIR@
|
||||||
|
|
||||||
pygstreamerdir = $(pythondir)/$(MODULE)
|
pkgpythondir = $(pythondir)/gst
|
||||||
pygstreamer_PYTHON = __init__.py
|
pkgpyexecdir = $(pyexecdir)/gst
|
||||||
|
|
||||||
pygstreamerexecdir = $(pyexecdir)/$(MODULE)
|
pygstdir = $(pkgpythondir)
|
||||||
|
pygst_PYTHON = __init__.py
|
||||||
|
|
||||||
|
# Backwards comptibility
|
||||||
|
pygstreamerdir = $(pythondir)
|
||||||
|
pygstreamer_PYTHON = gstreamer.py
|
||||||
|
|
||||||
|
pygstexecdir = $(pkgpyexecdir)
|
||||||
|
|
||||||
GST_OVERRIDES = common.override \
|
GST_OVERRIDES = common.override \
|
||||||
0.6.override \
|
0.6.override \
|
||||||
|
@ -27,15 +34,15 @@ if GST_0_7
|
||||||
VERSOURCES = 0.7.c 0.7.h
|
VERSOURCES = 0.7.c 0.7.h
|
||||||
endif
|
endif
|
||||||
|
|
||||||
pyexec_LTLIBRARIES = _gstreamermodule.la
|
pygstexec_LTLIBRARIES = _gstmodule.la
|
||||||
_gstreamermodule_la_SOURCES = \
|
_gstmodule_la_SOURCES = \
|
||||||
gstreamermodule.c \
|
gstreamermodule.c \
|
||||||
common.c common.h \
|
common.c common.h \
|
||||||
$(VERSOURCES)
|
$(VERSOURCES)
|
||||||
_gstreamermodule_la_CFLAGS = $(GST_CFLAGS) -fno-strict-aliasing
|
_gstmodule_la_CFLAGS = $(GST_CFLAGS) -fno-strict-aliasing
|
||||||
_gstreamermodule_la_LIBADD = $(GST_LIBS)
|
_gstmodule_la_LIBADD = $(GST_LIBS)
|
||||||
_gstreamermodule_la_LDFLAGS = -module -avoid-version -export-symbols-regex init_gstreamer
|
_gstmodule_la_LDFLAGS = -module -avoid-version -export-symbols-regex init_gst
|
||||||
nodist__gstreamermodule_la_SOURCES = gstreamer.c
|
nodist__gstmodule_la_SOURCES = gstreamer.c
|
||||||
|
|
||||||
CLEANFILES = $(MODULE).c h2def.defs $(MODULE).defs $(MODULE).override
|
CLEANFILES = $(MODULE).c h2def.defs $(MODULE).defs $(MODULE).override
|
||||||
EXTRA_DIST = $(GST_OVERRIDES) $(GST_DEFS) $(GST_CODE) arg-types.py
|
EXTRA_DIST = $(GST_OVERRIDES) $(GST_DEFS) $(GST_CODE) arg-types.py
|
||||||
|
|
|
@ -35,7 +35,7 @@ if os.path.exists(devloc):
|
||||||
sys.setdlopenflags(dl.RTLD_LAZY | dl.RTLD_GLOBAL)
|
sys.setdlopenflags(dl.RTLD_LAZY | dl.RTLD_GLOBAL)
|
||||||
del devloc, sys, os
|
del devloc, sys, os
|
||||||
|
|
||||||
from _gstreamer import *
|
from _gst import *
|
||||||
|
|
||||||
#from gtk import threads_init, threads_enter, threads_leave
|
#from gtk import threads_init, threads_enter, threads_leave
|
||||||
|
|
||||||
|
|
|
@ -34,7 +34,7 @@ void pygstreamer_add_constants(PyObject *module, const gchar *strip_prefix);
|
||||||
extern PyMethodDef pygstreamer_functions[];
|
extern PyMethodDef pygstreamer_functions[];
|
||||||
|
|
||||||
DL_EXPORT(void)
|
DL_EXPORT(void)
|
||||||
init_gstreamer (void)
|
init_gst (void)
|
||||||
{
|
{
|
||||||
PyObject *m, *d;
|
PyObject *m, *d;
|
||||||
PyObject *av;
|
PyObject *av;
|
||||||
|
@ -70,7 +70,7 @@ init_gstreamer (void)
|
||||||
g_free (argv);
|
g_free (argv);
|
||||||
}
|
}
|
||||||
|
|
||||||
m = Py_InitModule ("_gstreamer", pygstreamer_functions);
|
m = Py_InitModule ("gst._gst", pygstreamer_functions);
|
||||||
d = PyModule_GetDict (m);
|
d = PyModule_GetDict (m);
|
||||||
|
|
||||||
pygstreamer_register_classes (d);
|
pygstreamer_register_classes (d);
|
||||||
|
|
20
gstreamer/gstreamer.py
Normal file
20
gstreamer/gstreamer.py
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
#
|
||||||
|
# This library is free software; you can redistribute it and/or
|
||||||
|
# modify it under the terms of the GNU Library General Public
|
||||||
|
# License as published by the Free Software Foundation; either
|
||||||
|
# version 2 of the License, or (at your option) any later version.
|
||||||
|
#
|
||||||
|
# This library is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
# Library General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU Library General Public
|
||||||
|
# License along with this library; if not, write to the
|
||||||
|
# Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||||
|
# Boston, MA 02111-1307, USA.
|
||||||
|
#
|
||||||
|
# Author: David I. Lehn <dlehn@users.sourceforge.net>
|
||||||
|
#
|
||||||
|
|
||||||
|
from gst import *
|
|
@ -34,7 +34,7 @@ void pygstreamer_add_constants(PyObject *module, const gchar *strip_prefix);
|
||||||
extern PyMethodDef pygstreamer_functions[];
|
extern PyMethodDef pygstreamer_functions[];
|
||||||
|
|
||||||
DL_EXPORT(void)
|
DL_EXPORT(void)
|
||||||
init_gstreamer (void)
|
init_gst (void)
|
||||||
{
|
{
|
||||||
PyObject *m, *d;
|
PyObject *m, *d;
|
||||||
PyObject *av;
|
PyObject *av;
|
||||||
|
@ -70,7 +70,7 @@ init_gstreamer (void)
|
||||||
g_free (argv);
|
g_free (argv);
|
||||||
}
|
}
|
||||||
|
|
||||||
m = Py_InitModule ("_gstreamer", pygstreamer_functions);
|
m = Py_InitModule ("gst._gst", pygstreamer_functions);
|
||||||
d = PyModule_GetDict (m);
|
d = PyModule_GetDict (m);
|
||||||
|
|
||||||
pygstreamer_register_classes (d);
|
pygstreamer_register_classes (d);
|
||||||
|
|
Loading…
Reference in a new issue