rasmusvhansen hace 9 años
padre
commit
2b94fdc00c
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      jsmpg.js

+ 2 - 2
jsmpg.js Ver fichero

@@ -18,7 +18,7 @@ var jsmpeg = window.jsmpeg = function( url, opts ) {
18 18
 	this.wantsToPlay = this.autoplay;
19 19
 	this.loop = !!opts.loop;
20 20
 	this.seekable = !!opts.seekable;
21
-  this.preserveDrawingBuffer = !!opts.preserveDrawingBuffer;
21
+	this.preserveDrawingBuffer = !!opts.preserveDrawingBuffer;
22 22
 	this.externalLoadCallback = opts.onload || null;
23 23
 	this.externalDecodeCallback = opts.ondecodeframe || null;
24 24
 	this.externalFinishedCallback = opts.onfinished || null;
@@ -929,7 +929,7 @@ jsmpeg.prototype.initWebGL = function() {
929 929
 
930 930
 	// attempt to get a webgl context
931 931
 	try {
932
-    var options = { preserveDrawingBuffer: this.preserveDrawingBuffer };
932
+		var options = { preserveDrawingBuffer: this.preserveDrawingBuffer };
933 933
 		gl = this.gl = this.canvas.getContext('webgl', options) || this.canvas.getContext('experimental-webgl', options);
934 934
 	} catch (e) {
935 935
 		return false;