Fix media length limit

This commit is contained in:
calzoneman 2013-10-02 09:37:13 -05:00
parent 9d35636be2
commit abc9c398f4
2 changed files with 5 additions and 1 deletions

View File

@ -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 Tue Oct 01 22:57 2013 CDT
* lib/asyncqueue.js: Add a generalized queue class for queueing async * lib/asyncqueue.js: Add a generalized queue class for queueing async
functions to execute in order functions to execute in order

View File

@ -1402,7 +1402,7 @@ Channel.prototype.addMedia = function(data, user) {
} }
var afterData = function (q, c, m) { var afterData = function (q, c, m) {
if (data.maxlength && data.seconds > data.maxlength) { if (data.maxlength && m.seconds > data.maxlength) {
user.socket.emit("queueFail", user.socket.emit("queueFail",
"Media is too long!"); "Media is too long!");
q.release(); q.release();