From aa8e9ecb79b839cc6a08d6f8bda0376fb53a4a25 Mon Sep 17 00:00:00 2001
From: Jeremy White <jwhite@codeweavers.com>
Date: Mon, 19 Dec 2016 15:11:51 -0600
Subject: [PATCH] Catch and note updateend messages after video destruction.

---
 display.js | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/display.js b/display.js
index 40a809e..c124483 100644
--- a/display.js
+++ b/display.js
@@ -1106,6 +1106,12 @@ function handle_append_video_buffer_done(e)
     {
         stream.append_okay = true;
     }
+
+    if (!stream.video)
+    {
+        if (STREAM_DEBUG > 0)
+            console.log("Stream id " + stream.id + " received updateend after video is gone.");
+    }
 }
 
 function handle_video_buffer_error(e)
-- 
GitLab