]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-includes/ID3/module.tag.id3v1.php
WordPress 4.3
[autoinstalls/wordpress.git] / wp-includes / ID3 / module.tag.id3v1.php
index fd9069e04a1a343f0e100b4c484d3046eda17d35..3b4edfd2e223d86135cde5c36c94b3c5d7b7438c 100644 (file)
@@ -3,6 +3,7 @@
 /// getID3() by James Heinrich <info@getid3.org>               //
 //  available at http://getid3.sourceforge.net                 //
 //            or http://www.getid3.org                         //
+//          also https://github.com/JamesHeinrich/getID3       //
 /////////////////////////////////////////////////////////////////
 // See readme.txt for more details                             //
 /////////////////////////////////////////////////////////////////
@@ -25,9 +26,9 @@ class getid3_id3v1 extends getid3_handler
                        return false;
                }
 
-               fseek($this->getid3->fp, -256, SEEK_END);
-               $preid3v1 = fread($this->getid3->fp, 128);
-               $id3v1tag = fread($this->getid3->fp, 128);
+               $this->fseek(-256, SEEK_END);
+               $preid3v1 = $this->fread(128);
+               $id3v1tag = $this->fread(128);
 
                if (substr($id3v1tag, 0, 3) == 'TAG') {