> use the same structure used by avplay: demuxing/decoding thread + presentation thread. lu
I've already set up my code to follow avplay's structure of have two separate threads for demuxing/decoding and displaying the frame. I've created a pastebin with the relevant code chunks here: http://pastebin.com/cdPYzKsg (Note that the decodeSeekFrame() function was pasted earlier). For those unfamiliar with Qt, Qt allows for thread-safe communication between threads using a signals/slots system. By 'emit'ting my processed frame (line 45), Qt routes that signal to my renderFrame() slot (line 1) across threads. I've also throw in a few debugging statements to check which thread each process is on and can confirm that the display GUI thread is indeed different from the demuxing/decoding thread.
_______________________________________________ libav-api mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-api
