Video Thumbnail for Closures in C with GCC and Nested Functions