mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 11:45:25 +00:00
comment
Original commit message from CVS: comment
This commit is contained in:
parent
f915e8d473
commit
55a8ec7633
1 changed files with 7 additions and 4 deletions
|
@ -37,6 +37,10 @@ extern GSList *mainloops;
|
||||||
extern void _pygst_main_quit(void);
|
extern void _pygst_main_quit(void);
|
||||||
|
|
||||||
|
|
||||||
|
/* This is a timeout that gets added to the mainloop to handle SIGINT (Ctrl-C)
|
||||||
|
* Other signals get handled at some other point where transition from
|
||||||
|
* C -> Python is being made.
|
||||||
|
*/
|
||||||
static gboolean
|
static gboolean
|
||||||
python_do_pending_calls(gpointer data)
|
python_do_pending_calls(gpointer data)
|
||||||
{
|
{
|
||||||
|
@ -48,12 +52,11 @@ python_do_pending_calls(gpointer data)
|
||||||
PyErr_SetNone(PyExc_KeyboardInterrupt);
|
PyErr_SetNone(PyExc_KeyboardInterrupt);
|
||||||
pyg_gil_state_release(state);
|
pyg_gil_state_release(state);
|
||||||
quit = TRUE;
|
quit = TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (quit && mainloops != NULL)
|
if (quit && mainloops != NULL)
|
||||||
_pygst_main_quit();
|
_pygst_main_quit();
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue