|
|
@@ -29,14 +29,23 @@ MPEG1WASM.prototype.initializeWasmDecoder = function() {
|
|
29
|
29
|
};
|
|
30
|
30
|
|
|
31
|
31
|
MPEG1WASM.prototype.destroy = function() {
|
|
|
32
|
+ if (!this.decoder) {
|
|
|
33
|
+ return;
|
|
|
34
|
+ }
|
|
32
|
35
|
this.functions._mpeg1_decoder_destroy(this.decoder);
|
|
33
|
36
|
};
|
|
34
|
37
|
|
|
35
|
38
|
MPEG1WASM.prototype.bufferGetIndex = function() {
|
|
|
39
|
+ if (!this.decoder) {
|
|
|
40
|
+ return;
|
|
|
41
|
+ }
|
|
36
|
42
|
return this.functions._mpeg1_decoder_get_index(this.decoder);
|
|
37
|
43
|
};
|
|
38
|
44
|
|
|
39
|
45
|
MPEG1WASM.prototype.bufferSetIndex = function(index) {
|
|
|
46
|
+ if (!this.decoder) {
|
|
|
47
|
+ return;
|
|
|
48
|
+ }
|
|
40
|
49
|
this.functions._mpeg1_decoder_set_index(this.decoder, index);
|
|
41
|
50
|
};
|
|
42
|
51
|
|