diff options
Diffstat (limited to 'gst/cothreads.c')
-rw-r--r-- | gst/cothreads.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gst/cothreads.c b/gst/cothreads.c index 8a938f1dff..a2e9aa60e1 100644 --- a/gst/cothreads.c +++ b/gst/cothreads.c @@ -268,6 +268,9 @@ cothread_switch (cothread_state *thread) ctx->current = thread->threadnum; /* save the current stack pointer, frame pointer, and pc */ +#ifdef GST_ARCH_PRESETJMP + GST_ARCH_PRESETJMP(); +#endif enter = setjmp(current->jmp); if (enter != 0) { GST_DEBUG (0,"enter thread #%d %d %p<->%p (%d)\n",current->threadnum, enter, |