mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 17:20:36 +00:00
gst/: Remove deprecated code dating back from 0.8 era.
Original commit message from CVS: * gst/gst.override: * gst/gstmodule.c: (python_do_pending_calls): Remove deprecated code dating back from 0.8 era.
This commit is contained in:
parent
fd727fd969
commit
e11b1fcafa
3 changed files with 6 additions and 33 deletions
|
@ -1,3 +1,9 @@
|
|||
2006-02-07 Edward Hervey <edward@fluendo.com>
|
||||
|
||||
* gst/gst.override:
|
||||
* gst/gstmodule.c: (python_do_pending_calls):
|
||||
Remove deprecated code dating back from 0.8 era.
|
||||
|
||||
2006-02-06 Andy Wingo <wingo@pobox.com>
|
||||
|
||||
* codegen/argtypes.py (UInt64Arg.write_param): Parse long
|
||||
|
|
|
@ -62,32 +62,6 @@ GST_DEBUG_CATEGORY_EXTERN (python_debug);
|
|||
GST_DEBUG_CATEGORY_EXTERN (pygst_debug);
|
||||
#define GST_CAT_DEFAULT pygst_debug
|
||||
|
||||
GSList *mainloops = NULL;
|
||||
void
|
||||
_pygst_main_quit(void)
|
||||
{
|
||||
if (!mainloops)
|
||||
g_error ("Quit more loops than there are");
|
||||
else {
|
||||
GMainLoop *loop = mainloops->data;
|
||||
|
||||
mainloops = g_slist_delete_link (mainloops, mainloops);
|
||||
g_main_loop_quit (loop);
|
||||
g_main_loop_unref (loop);
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
_pygst_main(void)
|
||||
{
|
||||
GMainLoop *loop;
|
||||
|
||||
loop = g_main_loop_new (NULL, FALSE);
|
||||
mainloops = g_slist_prepend (mainloops, loop);
|
||||
|
||||
g_main_loop_run (loop);
|
||||
}
|
||||
|
||||
/* This function checks if a former Python code threw an exception and if
|
||||
* so, transforms this exception into an error on the given GstElement.
|
||||
* This allows code run on the element to just raise an exception instead of
|
||||
|
|
|
@ -39,8 +39,6 @@ void pygst_add_constants(PyObject *module, const gchar *strip_prefix);
|
|||
void _pygst_register_boxed_types(PyObject *moddict);
|
||||
|
||||
extern PyMethodDef pygst_functions[];
|
||||
extern GSList *mainloops;
|
||||
extern void _pygst_main_quit(void);
|
||||
|
||||
GST_DEBUG_CATEGORY (pygst_debug); /* for bindings code */
|
||||
GST_DEBUG_CATEGORY (python_debug); /* for python code */
|
||||
|
@ -68,19 +66,14 @@ GST_DEBUG_CATEGORY (python_debug); /* for python code */
|
|||
static gboolean
|
||||
python_do_pending_calls(gpointer data)
|
||||
{
|
||||
gboolean quit = FALSE;
|
||||
PyGILState_STATE state;
|
||||
|
||||
if (PyOS_InterruptOccurred()) {
|
||||
state = pyg_gil_state_ensure();
|
||||
PyErr_SetNone(PyExc_KeyboardInterrupt);
|
||||
pyg_gil_state_release(state);
|
||||
quit = TRUE;
|
||||
}
|
||||
|
||||
if (quit && mainloops != NULL)
|
||||
_pygst_main_quit();
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue