[Spice-commits] 4 commits - display.js
Jeremy White
jwhite at kemper.freedesktop.org
Fri Dec 16 16:36:19 UTC 2016
display.js | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
New commits:
commit a770272e7d59ceb8ee25e209a622ac04b68eac9d
Author: Jeremy White <jwhite at codeweavers.com>
Date: Thu Dec 15 10:43:22 2016 -0600
Include the codec type in the stream creation message.
diff --git a/display.js b/display.js
index 788fcc6..40a809e 100644
--- a/display.js
+++ b/display.js
@@ -535,7 +535,7 @@ SpiceDisplayConn.prototype.process_channel_message = function(msg)
if (msg.type == SPICE_MSG_DISPLAY_STREAM_CREATE)
{
var m = new SpiceMsgDisplayStreamCreate(msg.data);
- STREAM_DEBUG > 0 && console.log(this.type + ": MsgStreamCreate id" + m.id +
+ STREAM_DEBUG > 0 && console.log(this.type + ": MsgStreamCreate id" + m.id + "; type " + m.codec_type +
"; width " + m.stream_width + "; height " + m.stream_height +
"; left " + m.dest.left + "; top " + m.dest.top
);
commit b3a3a20d152ed3522210fa9b7edbe4c73cde33e1
Author: Jeremy White <jwhite at codeweavers.com>
Date: Thu Dec 15 10:42:41 2016 -0600
Move the queue length debug up to stream level 2.
It's a fair amount of noise, and not useful at level 1.
diff --git a/display.js b/display.js
index 0646744..788fcc6 100644
--- a/display.js
+++ b/display.js
@@ -1185,7 +1185,7 @@ function video_handle_event_debug(e)
if (STREAM_DEBUG > 1 && s.source_buffer)
console.log(" source_buffer " + dump_source_buffer(s.source_buffer));
- if (STREAM_DEBUG > 0 || s.queue.length > 1)
+ if (STREAM_DEBUG > 1 || s.queue.length > 1)
console.log(' queue len ' + s.queue.length + '; append_okay: ' + s.append_okay);
}
commit f29dcf43500d7c753ab1c263066478b66d34edcf
Author: Jeremy White <jwhite at codeweavers.com>
Date: Thu Dec 15 10:41:54 2016 -0600
Display stream creation and destruction at debug level 1.
They are low frequency, useful messages and should be seen
more readily.
diff --git a/display.js b/display.js
index 1012786..0646744 100644
--- a/display.js
+++ b/display.js
@@ -535,7 +535,7 @@ SpiceDisplayConn.prototype.process_channel_message = function(msg)
if (msg.type == SPICE_MSG_DISPLAY_STREAM_CREATE)
{
var m = new SpiceMsgDisplayStreamCreate(msg.data);
- STREAM_DEBUG > 1 && console.log(this.type + ": MsgStreamCreate id" + m.id +
+ STREAM_DEBUG > 0 && console.log(this.type + ": MsgStreamCreate id" + m.id +
"; width " + m.stream_width + "; height " + m.stream_height +
"; left " + m.dest.left + "; top " + m.dest.top
);
@@ -639,7 +639,7 @@ SpiceDisplayConn.prototype.process_channel_message = function(msg)
if (msg.type == SPICE_MSG_DISPLAY_STREAM_DESTROY)
{
var m = new SpiceMsgDisplayStreamDestroy(msg.data);
- STREAM_DEBUG > 1 && console.log(this.type + ": MsgStreamDestroy id" + m.id);
+ STREAM_DEBUG > 0 && console.log(this.type + ": MsgStreamDestroy id" + m.id);
if (this.streams[m.id].codec_type == SPICE_VIDEO_CODEC_TYPE_VP8)
{
commit ef3807908dd03e5132b189b074cb075059e2973d
Author: Jeremy White <jwhite at codeweavers.com>
Date: Thu Dec 15 10:40:15 2016 -0600
Show the timeupdate events at stream debug level 2, not level 1.
They are fairly noisy, and more appropriate to the
more detailed level.
diff --git a/display.js b/display.js
index e26bff8..1012786 100644
--- a/display.js
+++ b/display.js
@@ -1203,10 +1203,11 @@ function listen_for_video_events(stream)
var video_1_events = [
"loadstart", "suspend", "emptied", "stalled", "loadedmetadata", "loadeddata", "canplay",
"canplaythrough", "playing", "waiting", "seeking", "seeked", "ended", "durationchange",
- "timeupdate", "play", "pause", "ratechange"
+ "play", "pause", "ratechange"
];
var video_2_events = [
+ "timeupdate",
"progress",
"resize",
"volumechange"
More information about the Spice-commits
mailing list