From abc9c398f4179b23ca721a6e93e2a3e3b495df52 Mon Sep 17 00:00:00 2001 From: calzoneman Date: Wed, 2 Oct 2013 09:37:13 -0500 Subject: [PATCH] Fix media length limit --- changelog | 4 ++++ lib/channel.js | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/changelog b/changelog index 2be2b8d8..4f219378 100644 --- a/changelog +++ b/changelog @@ -1,3 +1,7 @@ +Wed Oct 02 09:35 2013 CDT + * lib/channel.js: Fix the use of the wrong variable when checking for + maximum video length + Tue Oct 01 22:57 2013 CDT * lib/asyncqueue.js: Add a generalized queue class for queueing async functions to execute in order diff --git a/lib/channel.js b/lib/channel.js index ed1744c8..224a94b1 100644 --- a/lib/channel.js +++ b/lib/channel.js @@ -1402,7 +1402,7 @@ Channel.prototype.addMedia = function(data, user) { } var afterData = function (q, c, m) { - if (data.maxlength && data.seconds > data.maxlength) { + if (data.maxlength && m.seconds > data.maxlength) { user.socket.emit("queueFail", "Media is too long!"); q.release();