Merge pull request #10881 from jdgleaver/core-message-flush

Do not flush the message queue when receiving core-generated notification messages
This commit is contained in:
Autechre 2020-06-22 07:34:47 +02:00 committed by GitHub
commit f36ceba596
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -17185,9 +17185,11 @@ static void runloop_core_msg_queue_push(
fps = (av_info && (av_info->timing.fps > 0)) ? av_info->timing.fps : 60.0;
duration_frames = (unsigned)((fps * (float)msg->duration / 1000.0f) + 0.5f);
/* Note: Do not flush the message queue here - a core
* may need to send multiple notifications simultaneously */
runloop_msg_queue_push(msg->msg,
msg->priority, duration_frames,
true, NULL, MESSAGE_QUEUE_ICON_DEFAULT,
false, NULL, MESSAGE_QUEUE_ICON_DEFAULT,
category);
}