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
@ -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>
|
2006-02-06 Andy Wingo <wingo@pobox.com>
|
||||||
|
|
||||||
* codegen/argtypes.py (UInt64Arg.write_param): Parse long
|
* codegen/argtypes.py (UInt64Arg.write_param): Parse long
|
||||||
|
@ -62,32 +62,6 @@ GST_DEBUG_CATEGORY_EXTERN (python_debug);
|
|||||||
GST_DEBUG_CATEGORY_EXTERN (pygst_debug);
|
GST_DEBUG_CATEGORY_EXTERN (pygst_debug);
|
||||||
#define GST_CAT_DEFAULT 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
|
/* This function checks if a former Python code threw an exception and if
|
||||||
* so, transforms this exception into an error on the given GstElement.
|
* 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
|
* 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);
|
void _pygst_register_boxed_types(PyObject *moddict);
|
||||||
|
|
||||||
extern PyMethodDef pygst_functions[];
|
extern PyMethodDef pygst_functions[];
|
||||||
extern GSList *mainloops;
|
|
||||||
extern void _pygst_main_quit(void);
|
|
||||||
|
|
||||||
GST_DEBUG_CATEGORY (pygst_debug); /* for bindings code */
|
GST_DEBUG_CATEGORY (pygst_debug); /* for bindings code */
|
||||||
GST_DEBUG_CATEGORY (python_debug); /* for python code */
|
GST_DEBUG_CATEGORY (python_debug); /* for python code */
|
||||||
@ -68,19 +66,14 @@ GST_DEBUG_CATEGORY (python_debug); /* for python code */
|
|||||||
static gboolean
|
static gboolean
|
||||||
python_do_pending_calls(gpointer data)
|
python_do_pending_calls(gpointer data)
|
||||||
{
|
{
|
||||||
gboolean quit = FALSE;
|
|
||||||
PyGILState_STATE state;
|
PyGILState_STATE state;
|
||||||
|
|
||||||
if (PyOS_InterruptOccurred()) {
|
if (PyOS_InterruptOccurred()) {
|
||||||
state = pyg_gil_state_ensure();
|
state = pyg_gil_state_ensure();
|
||||||
PyErr_SetNone(PyExc_KeyboardInterrupt);
|
PyErr_SetNone(PyExc_KeyboardInterrupt);
|
||||||
pyg_gil_state_release(state);
|
pyg_gil_state_release(state);
|
||||||
quit = TRUE;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (quit && mainloops != NULL)
|
|
||||||
_pygst_main_quit();
|
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user