Skip to content

Commit

Permalink
Type issue in scanner #528
Browse files Browse the repository at this point in the history
  • Loading branch information
Rello committed Sep 8, 2021
1 parent 4863d4f commit b0da872
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
# Changelog
All notable changes to the Audio Player project will be documented in this file.


## 3.3.0 - 2021-09-xx
### Changed
- Event dispatcher for Add-ons
- getID3 1.9.20-202109010614
- remove non permitted characters #532

### Fixed
- Type issue in scanner #528

## 3.2.1 - 2021-08-20
### Fixed
- dashboard style impact #550
Expand Down
2 changes: 1 addition & 1 deletion lib/Controller/ScannerController.php
Original file line number Diff line number Diff line change
Expand Up @@ -638,7 +638,7 @@ private function analyze($audio, $getID3, OutputInterface $output = null)
$this->logger->debug('Some external storage is not available', array('app' => 'audioplayer'));
} else {
$handle = $audio->fopen('rb');
if (@fseek($handle, -24, SEEK_END) === 0) {
if (is_resource($handle) && @fseek($handle, -24, SEEK_END) === 0) {
$ThisFileInfo = $getID3->analyze($audio->getPath(), $audio->getSize(), '', $handle);
} else {
if (!$this->noFseek) {
Expand Down

0 comments on commit b0da872

Please sign in to comment.