diff options
author | Michael Olson <mwolson@gnu.org> | 2006-04-01 23:26:00 +0000 |
---|---|---|
committer | Michael Olson <mwolson@gnu.org> | 2006-04-01 23:26:00 +0000 |
commit | 438e7ec52497afc1aa5799f13d83156ccfda1f15 (patch) | |
tree | deae711aca2c4dd535d9f999c9c05059621bc5ed /emms-stream-info.el | |
parent | da7d1d0ebae7e4b6d8027a7fec3eef0c3816f2b6 (diff) |
Fix a variety of compilation errors and warnings.
darcs-hash:20060401232610-1bfb2-5fe5e4892c94e29a59738bf0d27e7e91ad68f2ed.gz
Diffstat (limited to 'emms-stream-info.el')
-rw-r--r-- | emms-stream-info.el | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/emms-stream-info.el b/emms-stream-info.el index 8a6b245..93c0de4 100644 --- a/emms-stream-info.el +++ b/emms-stream-info.el @@ -69,6 +69,8 @@ ;;; Code: +(require 'emms) + ;; A higher value for 'emms-stream-info-max' this gives us a ;; correspondingly higher chance of grabbing the title information ;; from a stream but incurs a price in the additional time it takes to @@ -624,9 +626,11 @@ Optional argument CONT boolean." (if urlstring (emms-stream-info-parse-url urlstring) - (emms-stream-info-parse-url - ;; possible bug, what if there is no last stream? - (emms-stream-url emms-stream-last-stream))) + (and (boundp 'emms-stream-last-stream) + (fboundp 'emms-stream-url) + emms-stream-last-stream + (emms-stream-info-parse-url + (emms-stream-url emms-stream-last-stream)))) (emms-stream-info-reset-state) |