stop using thr->frame.within_thread for thread_set_osd_msg.
TODO: find a more reliable way to determine if the calling thread is the
video driver thread or not.
Merge pull request #1102 from aliaspider/master

stop using thr->frame.within_thread for thread_set_osd_msg.