Skip to content
Snippets Groups Projects
Commit 1aa5ca65 authored by Romain Vimont's avatar Romain Vimont Committed by Rémi Denis-Courmont
Browse files

qt: do not take snapshots from the UI thread

Snapshots are performed via a call to:

    var_TriggerCallback("video-snapshot")

causing its callback (SnapshotCallback) to be called synchronously,
executing the following steps:
 - wait for the vout thread to actually capture the (next) frame;
 - encode the picture to PNG;
 - write the result to disk (I/O).

Since var_TriggerCallback("video-snapshot") is called from the UI
thread, all these blocking actions are also performed on the UI thread.

Move the call to a separate thread.
parent e2a10a5c
No related branches found
No related tags found
1 merge request!2629qt: do not take snapshots from the UI thread
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment