Mercurial > vim
comparison src/os_unix.c @ 17708:10696f279e20 v8.1.1851
patch 8.1.1851: crash when sound_playfile() callback plays sound
commit https://github.com/vim/vim/commit/28e67e0c1496b7bb166a0acfb176690f219101ca
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Aug 15 23:05:49 2019 +0200
patch 8.1.1851: crash when sound_playfile() callback plays sound
Problem: Crash when sound_playfile() callback plays sound.
Solution: Invoke callback later from event loop.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 15 Aug 2019 23:15:04 +0200 |
parents | f1fd0b0b335c |
children | 73f4bb1fdfba |
comparison
equal
deleted
inserted
replaced
17707:bf211be8ffd1 | 17708:10696f279e20 |
---|---|
5995 if (rest >= 0 && rest < XT_TRACE_DELAY) | 5995 if (rest >= 0 && rest < XT_TRACE_DELAY) |
5996 msec = rest; | 5996 msec = rest; |
5997 if (rest >= 0) | 5997 if (rest >= 0) |
5998 rest -= msec; | 5998 rest -= msec; |
5999 } | 5999 } |
6000 # endif | |
6001 # ifdef FEAT_SOUND_CANBERRA | |
6002 // Invoke any pending sound callbacks. | |
6003 if (has_sound_callback_in_queue()) | |
6004 invoke_sound_callback(); | |
6000 # endif | 6005 # endif |
6001 # ifdef FEAT_MOUSE_GPM | 6006 # ifdef FEAT_MOUSE_GPM |
6002 gpm_process_wanted = 0; | 6007 gpm_process_wanted = 0; |
6003 avail = RealWaitForChar(read_cmd_fd, msec, | 6008 avail = RealWaitForChar(read_cmd_fd, msec, |
6004 &gpm_process_wanted, interrupted); | 6009 &gpm_process_wanted, interrupted); |