ejurgensen
8c0db10e67
[http] Move Curl https client from lastfm to http so it is available for other modules
2016-11-05 13:43:35 +01:00
ejurgensen
22a1e16c12
[artwork] Move timebase back, it must be set for the AVCodecContext for libav (and older versions of ffmpeg?)
2016-01-07 23:42:27 +01:00
ejurgensen
1b24a86169
[artwork] Tidy up artwork.c and handle remaining ffmpeg deprecated warning
2016-01-07 22:48:04 +01:00
ejurgensen
d56576094a
[artwork] Do like libav says: "Using AVStream.codec.time_base as a timebase hint to the muxer is deprecated. Set AVStream.time_base instead."
2016-01-06 23:02:43 +01:00
ejurgensen
1f1d79025d
[artwork] Keep a raw Spotify source image in case rescaling is not required
2016-01-06 22:39:32 +01:00
ejurgensen
0d55e055c0
[ffmpeg] Update most deprecated functions
2016-01-05 23:22:01 +01:00
ejurgensen
7caf8cc66a
[artwork] Add ability to rescale Spotify (should improve caching so we don't save too large images)
2016-01-05 21:44:44 +01:00
ejurgensen
9a0a390a73
[artwork] Get rid of legacy libav/ffmpeg support in artwork.c
2016-01-03 12:24:21 +01:00
ejurgensen
c3d9f65f8b
[artwork] Adjust existing code to new structure
2016-01-03 12:24:20 +01:00
ejurgensen
238ee3c122
[artwork] Refactor artwork to make it easier to add new backends (WIP)
2016-01-03 12:24:20 +01:00
ejurgensen
55104015e0
Full removal of libevent 1 legacy code. Also drop pipe() in FreeBSD, since pipe2 is available now.
2015-10-19 21:15:29 +02:00
ejurgensen
294d7a270f
Protect against possible segfault if the artwork pixel format is unknown
...
- thank you groinwood for reporting this bug
2015-08-24 21:27:55 +02:00
ejurgensen
b6703ab7cd
Don't retrieve ICY StreamUrls without jpg/png extension (don't want to risk initiating a major, useless download)
2015-06-20 23:11:18 +02:00
chme
659f9c09bb
Use enum values for data_kind and media_kind
2015-04-23 11:34:44 +02:00
ejurgensen
5fa908cd9c
Add an artwork "stash" in cache.c so we avoid making redundant http artwork requests
2015-04-18 22:55:00 +02:00
ejurgensen
2d8a6a7102
Drop support for libavformat versions < 53 (issue #128 )
2015-04-12 20:05:14 +02:00
ejurgensen
e72447954a
Some cleaning up of ICY artwork retrieval
2015-04-09 22:22:42 +02:00
ejurgensen
94f94b03fe
Swap artwork arguments so destination evbuffer comes first
2015-04-09 21:23:20 +02:00
ejurgensen
50ef710549
Fix memleak in artwork.c
2015-04-02 00:40:10 +02:00
ejurgensen
19ba8fba67
Drop async mode from http client, not needed and probably not working
2015-03-31 23:27:18 +02:00
ejurgensen
96200eb808
Use own libevent http client for downloading artwork, ffmpeg seems a
...
bit too slow
2015-03-31 00:08:29 +02:00
ejurgensen
e5c8128c9d
Minor improvements for rescale_needed()
2015-03-30 23:10:33 +02:00
ejurgensen
0b67ae3974
Some fixup for libav 0.8
2015-03-29 01:02:14 +01:00
ejurgensen
cde8441493
Don't cache internet artwork
2015-03-17 22:04:07 +01:00
ejurgensen
46e4214b39
Adjust log severity
2015-03-16 21:40:50 +01:00
ejurgensen
6221e24f1b
Support for live ICY metadata for streams (incl. artwork)
2015-03-14 21:42:53 +01:00
ejurgensen
103ce0887a
Misc artwork fixup
2015-01-04 19:38:13 +01:00
ejurgensen
73bbe831e6
artwork.c overhaul and avoid "Error reading artwork" message when there is no artwork
...
- try to align return values in artwork.c
2015-01-04 15:12:46 +01:00
ejurgensen
0d7ec13ede
Merge branch 'ownartwork' of @couteau and various modifications (see pr #75 )
2015-01-03 00:31:48 +01:00
ejurgensen
2879458e98
Fix for issue #62 (slow internet streams), credit @chme
2015-01-02 23:24:44 +01:00
Stuart C. Naifeh
f3e21956c4
Add configuration option to disable individual artwork
2014-12-30 10:38:03 -05:00
Stuart C. Naifeh
431ecdb197
Cache individual artwork
2014-12-27 11:40:52 -05:00
Stuart C. Naifeh
9e9ffe6809
Update cache api, version, and logic to support caching of individual as
...
well as group artwork
2014-12-27 10:48:12 -05:00
Stuart C. Naifeh
2171a1f2b3
Re-add support for individual artwork
2014-12-27 09:44:16 -05:00
ejurgensen
9b7a22ab0a
Avoid threading issue in both ffmpeg and libav that prevents decoding embedded png's
2014-12-09 22:31:41 +01:00
chme
2e5d234ac5
[artwork] do not add cache entry if reading artwork failed
2014-12-07 07:39:27 +01:00
chme
7578bb1205
Artwork caching (pull request #61 ), and also:
...
- introduced new section in config file for sqlite pragma settings,
added config for artwork cache
- added setting of pragma synchronous, cache size and journal mode to
daap cache
2014-11-10 22:53:08 +01:00
ejurgensen
4857f21644
Merge branch 'freebsd': New timing mechanism (issue #46 )
...
- also some libevent 2 adjustments
2014-09-30 21:39:02 +02:00
ejurgensen
376f0ed1c0
Minor fix
2014-09-30 18:55:32 +02:00
ejurgensen
495aebec40
Fix bug where it would hang because it looked for artwork in named pipes
...
- also some refactoring of the artwork code to diminish redundancy
2014-09-29 23:40:38 +02:00
ejurgensen
513e38dcda
Proper update to libevent 2 (artwork, avio_evbuffer, dmap_common, transcode)
2014-09-28 22:44:45 +02:00
ejurgensen
c7aaf6eff3
Forgot a spotify enabled condition
2014-04-05 22:30:35 +02:00
ejurgensen
c47287a556
Support for Spotify artwork
2014-04-04 23:14:43 +02:00
ejurgensen
687f349927
Let configure check libevent version and include according to version
2014-03-13 23:33:35 +01:00
ejurgensen
7ed6cc98c3
Add support for Spotify (squashed commit), and:
...
- Try to not return items which a client can't play
- Remove inotify subscription to IN_MODIFY and IN_CREATE
- Fix crash on unknown codec type in transcode.c
- Probably added some new bugs...
2014-03-11 23:20:29 +01:00
ejurgensen
7997377deb
Adjust for libav 10 API
...
With libav 10 the API is (again...) changed, adjust for that and
add the appropriate version conditions
2014-02-17 23:05:24 +01:00
ejurgensen
3f33f33310
Add preprocessor macro FFMPEG_INCOMPATIBLE_API and use it, so
...
we use avcodec_find_best_pix_fmt_of_list for ffmpeg. Also rearrange
ffmpeg/libav libraries according to ffmpeg FAQ.
2014-01-12 22:34:57 +01:00
ejurgensen
60f43c94c9
Change embedded artwork libav preprocessor conditions
2014-01-11 23:37:04 +01:00
ejurgensen
2d4de9dd75
Add misc.h include to artwork and correct safe_atoi32 call
2014-01-11 23:34:03 +01:00
ejurgensen
eac404fa3a
Add artwork field to db (upgrade to v15). Set field when embedded
...
artwork found by the filescanner. Reenable support for embedded
artwork in group requests.
2014-01-11 23:05:29 +01:00