aboutsummaryrefslogtreecommitdiffstats
path: root/community/kodi/set-default-stacksize.patch
blob: 8a79215f8b136788412955d949ce132aaa31b277 (plain)
1
2
3
4
5
6
7
8
9
10
--- ./xbmc/threads/platform/pthreads/ThreadImpl.cpp.orig
+++ ./xbmc/threads/platform/pthreads/ThreadImpl.cpp
@@ -42,6 +42,7 @@
 {
   pthread_attr_t attr;
   pthread_attr_init(&attr);
+  if (!stacksize) stacksize = 1024*1024;
 #if !defined(TARGET_ANDROID) // http://code.google.com/p/android/issues/detail?id=7808
   if (stacksize > PTHREAD_STACK_MIN)
     pthread_attr_setstacksize(&attr, stacksize);