fix InputSource after automatic merging of #1575 in the THREADED branch
Merge pull request #1617 from fwyzard/fix_for_pull1575

Multithreaded framework -- Fix InputSource after automatic merging of #1575 in the THREADED branch