Skip to content

Commit

Permalink
fix for #172 that broke WavPack
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesHeinrich committed Dec 5, 2018
1 parent aab2924 commit f31b896
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions getid3/getid3.php
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ class getID3
*/
protected $startup_warning = '';

const VERSION = '1.9.16-201812042150';
const VERSION = '1.9.16-201812050141';
const FREAD_BUFFER_SIZE = 32768;

const ATTACHMENTS_NONE = false;
Expand Down Expand Up @@ -434,7 +434,7 @@ public function openfile($filename, $filesize=null, $fp=null) {
//if (is_readable($filename) && is_file($filename) && ($this->fp = fopen($filename, 'rb'))) { // see https://www.getid3.org/phpBB3/viewtopic.php?t=1720
if (($fp != null) && ((get_resource_type($fp) == 'file') || (get_resource_type($fp) == 'stream'))) {
$this->fp = $fp;
} else if ((is_readable($filename) || file_exists($filename)) && is_file($filename) && ($this->fp = fopen($filename, 'rb'))) {
} elseif ((is_readable($filename) || file_exists($filename)) && is_file($filename) && ($this->fp = fopen($filename, 'rb'))) {
// great
} else {
$errormessagelist = array();
Expand Down
2 changes: 1 addition & 1 deletion getid3/module.audio-video.riff.php
Original file line number Diff line number Diff line change
Expand Up @@ -1811,7 +1811,7 @@ public function ParseRIFFdata(&$RIFFdata) {
fclose($fp_temp);

$getid3_temp = new getID3();
$getid3_temp->openfile($tempfile, null, $this->getid3->fp);
$getid3_temp->openfile($tempfile);
$getid3_temp->info['filesize'] = $RIFFdataLength;
$getid3_temp->info['filenamepath'] = $info['filenamepath'];
$getid3_temp->info['tags'] = $info['tags'];
Expand Down

0 comments on commit f31b896

Please sign in to comment.