Snapshots are performed via a call to:
var_TriggerCallback("video-snapshot")
causing its callback (SnapshotCallback) to be called synchronously, executing the following steps:
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.
VideoLAN code repository instance