diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-01-05 08:07:00 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-01-05 08:07:00 +0000 |
commit | b611d2e0a3c4b3e67273478baa4138e3bf47c7b4 (patch) | |
tree | 4b402e7465e121035a37c875b4ee296e83ad5dc2 /lib/class/stream.class.php | |
parent | 2e340028710ec8cb83defc02dce6bcd0c6993d01 (diff) | |
download | ampache-b611d2e0a3c4b3e67273478baa4138e3bf47c7b4.tar.gz ampache-b611d2e0a3c4b3e67273478baa4138e3bf47c7b4.tar.bz2 ampache-b611d2e0a3c4b3e67273478baa4138e3bf47c7b4.zip |
* Added echo of pattern on print tags
* Tweaked headers on ajax page
* Fixed quick search box issues on browse by song
* Reverted to text for browse by albums
* Fixed some bad error handling on localplay
Diffstat (limited to 'lib/class/stream.class.php')
-rw-r--r-- | lib/class/stream.class.php | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/lib/class/stream.class.php b/lib/class/stream.class.php index 1f6f3fb5..c505b380 100644 --- a/lib/class/stream.class.php +++ b/lib/class/stream.class.php @@ -315,8 +315,18 @@ class Stream { */ function create_localplay() { - $localplay = init_localplay(); - $localplay->connect(); + if (!$localplay = init_localplay()) { + debug_event('localplay','Player failed to init on song add','3'); + echo "Error: Localplay Init Failed check config"; + return false; + } + + if (!$localplay->connect()) { + debug_event('localplay','Localplay Player Connect failed','3'); + echo "Error: Localplay connect failed check config"; + return false; + } + $localplay->add($this->songs); /* Check for Support */ |