110 Commits

Author SHA1 Message Date
Justin Maggard
c5b2f2171f * Make Samsung BD players work with MKV files in addition to their TVs. 2010-07-13 20:17:18 +00:00
Justin Maggard
da46b385cb Add a new Samsung User-Agent for client type detection. 2010-07-08 00:29:37 +00:00
Justin Maggard
d1623ca25d * Use the MSG_MORE flag for send() where appropriate. 2010-06-09 08:05:27 +00:00
Justin Maggard
c779eab4de * Optimize JPEG scaling by downscaling as much as possible during decompression. 2010-06-08 17:34:29 +00:00
Justin Maggard
64a173bd51 * Fix one more spot where we could close an aleady-closed socket. 2009-11-12 01:54:45 +00:00
Justin Maggard
24ff2a8a1c * Add strstrc() function which helps avoid a couple reads of unitialized memory. 2009-11-12 01:53:40 +00:00
Justin Maggard
71e399b4a6 * Use chunked encoding on resized images, so we can send out the header before transcoding. 2009-11-10 20:09:04 +00:00
Justin Maggard
db4b8d0a02 * Real proper handling of chunked requests. 2009-11-10 00:01:06 +00:00
Justin Maggard
c4170af521 * Add a no-resize flag, which tells us to to advertise downscaled images. Useful for clients like Samsung TVs, which can use large images well, but will use downscaled small images when given a choice. 2009-11-10 00:00:09 +00:00
Justin Maggard
e18cf08880 * Add initial support for 3gp video files.
* Add LPCM to the main SourceProtocolInfo list.
2009-10-21 21:11:57 +00:00
Justin Maggard
f7e525019a * Add SRT subtitle support using Samsung's method. 2009-10-15 00:40:27 +00:00
Justin Maggard
4efa9d06ac * Make strict DLNA adherence optional. Many products appear to handle JPEGs >4096x4096 classified as JPEG_LRG, and it's better to not downscale if we don't have to. 2009-10-14 21:24:23 +00:00
Justin Maggard
b6788cccb0 * Automatically adapt our friendly_name to meet Xbox360 requirements if we detect an Xbox360 client. 2009-09-18 07:53:36 +00:00
Justin Maggard
bf298f75fb * Default to video/avi MIME type for generic DLNA 1.5 clients, since that seems to be the norm. 2009-09-14 19:42:51 +00:00
Justin Maggard
bd0aabf933 * Fix a couple DLNA HTTP header errors with resized images. 2009-09-02 01:59:49 +00:00
Justin Maggard
f259479ecf * Don't call WAV files LPCM, because they're disqualified due to endianness. 2009-08-10 21:16:53 +00:00
Justin Maggard
aba116a445 * Avoid using '&' in URIs for resized images, to avoid client compatibility issues. 2009-08-06 07:50:12 +00:00
Justin Maggard
51e61e3973 * Track MAC addresses in the client cache (when we can find them); so if we have an expired cache entry, but the MAC hasn't changed, we can assume the original ID is still valid. 2009-07-31 01:41:10 +00:00
Justin Maggard
780ae7ad8b * Add Popcorn Hour support for using the wrong MIME type for FLAC.
* Fix a couple crash bugs with invalid UPnP-A/V SOAP requests.
* Fix WAV file extension support.
2009-07-28 23:17:31 +00:00
Justin Maggard
0d069effd9 * Fix some minor 64-bit compilation issues. 2009-07-17 22:54:31 +00:00
Justin Maggard
1a5e1a6de9 * Add hacks to make .mkv support work on Samsung TVs. 2009-07-13 18:00:06 +00:00
Justin Maggard
c07d7e7ec4 * Make the HTTP request struct point to realloc'd memory locations where necessary. 2009-06-09 22:35:32 +00:00
Justin Maggard
a6d01a85e3 * Add MIME workarounds for WAV files on Denon receivers. 2009-06-04 19:13:18 +00:00
Justin Maggard
8dc1a82d7e * Use PS3-style MIME tweaks for Samsung TVs. 2009-06-03 22:01:31 +00:00
Justin Maggard
efefcde150 * Work around Freebox's bad behavior of only using the first <res> element for images. 2009-06-03 20:49:31 +00:00
Justin Maggard
31cfba1a21 * More changes to pass the UPnP Device Validator. 2009-05-20 01:31:34 +00:00
Justin Maggard
c10c913b30 * Some fixes for the UPnP Device Validator. 2009-05-19 23:43:51 +00:00
Justin Maggard
5a08b7e275 * Some minor DLNA conformance fixups. 2009-05-14 22:13:06 +00:00
Justin Maggard
3e7a3cbfb5 * Add WAV file support. 2009-05-12 01:21:53 +00:00
Justin Maggard
bdf2c86075 * Sort out Server description in HTTP headers. This actually makes Windows Media Player recognize a MiniDLNA server also. 2009-05-10 03:24:29 +00:00
Justin Maggard
1a26bfba7a * Add version number. 2009-05-05 02:39:40 +00:00
Justin Maggard
f7f67359ed * Handle double client detection without getting into an infinite loop. 2009-05-03 07:15:52 +00:00
Justin Maggard
0fa5f5b598 * Fix a couple bugs in client detection code.
* Fix incremental UPnPBrowse bug that was recently introduced.
2009-05-02 20:53:24 +00:00
Justin Maggard
b947187035 * Only count DLNA 1.5 clients as DLNA-compliant. 2009-05-01 21:53:22 +00:00
Justin Maggard
401da95831 * Add generic DLNA client type detection and caching, and don't use DLNA-specific MIME types if the client doesn't support DLNA. 2009-05-01 19:36:43 +00:00
Justin Maggard
ff046503bd * Update client cache if the client type changes on a given IP.
* Default .avi files to MIME type video/x-msvideo for better backward compatibility.
2009-05-01 01:39:55 +00:00
Justin Maggard
76ab570ed1 * Add client type caching code, so we can behave in a customized manner if necessary for certain clients. 2009-05-01 00:01:03 +00:00
Justin Maggard
c4ca6527f0 * Invalidate the scanner cache when an inotify deletion takes place. 2009-04-21 02:50:45 +00:00
Justin Maggard
2e3a4f1dde * Implement the QueryItem command.
* Add error handling/reporting for unknown commands.
2009-03-30 07:43:10 +00:00
Justin Maggard
9a481196fc * Check all contributor types when determining the artist. 2009-03-26 21:06:51 +00:00
Justin Maggard
41170f4e30 * Fix possible uninitialized value. 2009-03-23 23:59:24 +00:00
Justin Maggard
575556ca9d * Fix race condition with file-serving SQL queries and scanner/inotify SQL queries. 2009-03-22 22:21:44 +00:00
Justin Maggard
c4d180f80d * Some image scaling tweaks for different platforms. 2009-03-20 19:33:34 +00:00
Justin Maggard
ac5a37b27a * Get rid of all depenence on libgd, and use libjpeg directly. 2009-03-19 08:06:27 +00:00
Justin Maggard
d484d5870c * Fix a couple bugs in error handling when forking. 2009-03-17 22:08:51 +00:00
Justin Maggard
f04296de38 * Fork request handling for resized images. 2009-03-16 18:43:42 +00:00
Justin Maggard
7a2e3ae67a * Many changes for TiVo support. It actually [kinda] works. :) 2009-03-13 08:39:37 +00:00
Justin Maggard
2664fe0d91 * Add device icon support. 2009-03-02 19:59:07 +00:00
Justin Maggard
b74e2d33f3 * Use internal music metadata functions intead of taglib.
1) Taglib does not support MP4 or WMA/ASF without hacking it in there.
  2) Taglib is C++, so it's nice to remove that dependency.
* Use embedded album art where available.
2009-02-25 21:16:51 +00:00
Justin Maggard
2da2f6d4a1 * Add some preliminary code for the eventual possibility of TiVo support. 2009-02-23 23:10:27 +00:00