653 Commits

Author SHA1 Message Date
Justin Maggard
13e3613dd6 Minor code simplification. 2014-04-28 12:00:59 -07:00
Justin Maggard
4eeb0858e4 Merge commit '750917f7ea9876d7a97f48aa4b22097fcf7958d9' 2014-04-28 10:47:01 -07:00
Justin Maggard
e4fcb717e7 log: replace a few fprintf's with DPRINTF's. 2014-04-25 17:31:12 -07:00
Justin Maggard
750917f7ea minissdp: fix minor uninitialized access 2014-04-25 17:13:07 -07:00
Justin Maggard
be5f4a50eb Type data pointer variables as uint8_t. 2014-04-25 14:30:38 -07:00
Justin Maggard
381c4805e6 subtitles: accept smi in addition to srt 2014-04-21 15:44:39 -07:00
Justin Maggard
0721528bcd sql: introduce sql_get_int64_field()
Returns int64_t instead of int.
2014-04-21 15:43:13 -07:00
Justin Maggard
27a29f9e92 tivo: clean up some error checking 2014-04-18 16:18:00 -07:00
Justin Maggard
08c21f39d1 http: fix error handling in the fallback read/write path 2014-04-18 15:46:00 -07:00
Justin Maggard
e2cebb68e1 albumart: use a separate variable for temporary pointer storage
Re-using the same one confuses some static code analyzers, and
is a bit less readable.
2014-04-18 15:36:38 -07:00
Justin Maggard
331d484555 utils: add noalloc flag to modifyString()
This should make it more straightforward for code analyzers to
tell if the function is going to allocate memory.
2014-04-18 15:18:44 -07:00
Justin Maggard
b0550495e8 sql: use va_end() where appropriate 2014-04-11 14:34:23 -07:00
Justin Maggard
5676a17204 cleanup: remove unnecessary sbeacon set 2014-04-11 12:51:16 -07:00
Justin Maggard
ffb8b35424 cleanup: avoid dereferencing NULL pointers 2014-04-11 12:43:59 -07:00
Justin Maggard
5bbd7b5443 albumart: remove logically dead code 2014-04-11 12:36:20 -07:00
Justin Maggard
c6367aa4ce minissdp: fix potential out-of-bounds read 2014-04-11 12:31:32 -07:00
Catalin Patulea
3a57744735 Add printf attribute to log_err/DPRINTF and fix a few warnings
Modified to not use %z for portability reasons.
2014-04-10 18:57:30 -07:00
Justin Maggard
45cf9208fb Declare printf-like attributes for strcatf() and xasprintf()
Declare printf-like attributes for strcatf() and xasprintf(), and
clean up errors found by the compile after doing so.
2014-04-10 18:18:28 -07:00
Catalin Patulea
57c6510fe4 upnphttp: improve robustness against malformed (possibly malicious) requests 2014-04-10 18:10:55 -07:00
Catalin Patulea
01532b0490 upnphttp: check realloc return while receiving request body 2014-04-10 17:49:01 -07:00
Catalin Patulea
4a507cc84c upnphttp: limit receive headers size to 1 MB 2014-04-10 17:48:49 -07:00
Catalin Patulea
92b6061929 upnphttp: check realloc return while receiving headers 2014-04-10 17:48:33 -07:00
Catalin Patulea
92ab16c96a Fix typo in multi content type example 2014-04-10 17:48:10 -07:00
Justin Maggard
bc43d45964 Clean up a couple return value checks. 2014-04-07 14:20:50 -07:00
Justin Maggard
27eae53584 process: remove logically dead code. 2014-04-07 11:26:37 -07:00
Justin Maggard
d492b43ef8 Fix various potential illegal access and memory leaks in error conditions. 2014-04-07 11:20:19 -07:00
Justin Maggard
6e43ab3c06 Introduce THISORNUL macro. 2014-04-07 10:29:56 -07:00
Justin Maggard
e3792ad8da upnpsoap: fix uninitialized read with emtpy filter 2014-04-07 09:08:30 -07:00
whosane
301b045cd1 Fix Broken SSDP Multicast Membership Addition. 2014-03-31 09:15:37 -07:00
Justin Maggard
435bd3d04d Use SERVER_NAME variable when checking for existing process. 2014-03-17 11:41:10 -07:00
Justin Maggard
9c8bc5d9c2 status: note when a media scan is in progress 2014-03-17 11:32:56 -07:00
Justin Maggard
98ebb0f5d5 albumart: code simplification 2014-03-17 11:01:36 -07:00
Justin Maggard
76a1ffff4e cleanup: remote obsolete references to listening_ip 2014-03-14 19:06:07 -07:00
Justin Maggard
0ea24845eb clients: add Asus O!Play support and quirks
Asus O!Play reboots with titles longer than 23 characters with some
file types when there are subtitles present.  So we truncate video
file titles with external subtitles.

It also supports subtitles in LG fashion, so add that too.
2014-03-13 10:48:41 -07:00
Justin Maggard
365d5c3412 upnpsoap: make subtitle support more generic
It sounds like more clients may support subtitles using a res element,
so we should make our support more generic.
2014-03-12 11:59:10 -07:00
Justin Maggard
cce9a012b3 config: add merge_media_dirs option
By default, if there are multiple media directories specified, there
will be entries for each one in the root directory container.  If
there is only one media directory specified, then just its contents
will be in the root container, to save one level of browsing.

Setting this option changes the default behavior so that multiple
media dirs will behave like a single media dir.
2014-03-12 11:40:49 -07:00
Justin Maggard
7c0739ad3f config: introduce strtobool() helper. 2014-03-12 11:32:09 -07:00
Justin Maggard
e3a53fc8a3 clients: separate Samsung BDP and TV client types again
Advertising the DCM10 vendor-specific feature to Samsung Series
C and D (at least) players causes them to always browse ContainerID
1, no matter which section is chosen from their GUI.

Treat TVs and BDPs as separate client types with unique features.
2014-03-11 14:46:21 -07:00
Justin Maggard
d10293b038 autoconf: Use subdir-objects, to silence warnings from new autotools 2014-03-10 10:00:52 -07:00
Justin Maggard
10471aa29b portability: fix compiling on systems without iconv 2014-03-07 13:20:26 -08:00
Justin Maggard
a606012d23 Fix Clang compiler warnings. 2014-03-07 12:42:40 -08:00
Justin Maggard
546b12e1a9 portability: rework inline functions for clang compatibility. 2014-03-07 12:36:50 -08:00
Justin Maggard
ce16739213 samsung: fix root_container setting
Pretend that we don't support SamsungGetFeatureList if we have a
custom root container specified, or else the Samsung client will
jump straight to our normal A/V/P sections.
2014-03-07 12:23:58 -08:00
Darkvater
ba8e479c35 log: enhance setting loglevels
Enable logging level settings such as 'log_level=error' to set all
levels to error, or 'log_level=error,ssdp=maxdebug' to override only one
category
2014-03-06 17:09:39 -08:00
Justin Maggard
b9404d1847 cleanup: remove unused tagutils code, and switch to standard int types 2014-03-06 17:08:21 -08:00
Justin Maggard
cb95ca6e06 Wrap up version 1.1.2. 2014-03-06 16:30:25 -08:00
Justin Maggard
993a4adbbc ssdp: improve debug logging 2014-03-05 13:56:50 -08:00
Justin Maggard
5cddc8fb4d print usage and bail if the user gives an unknown command line option 2014-03-03 16:04:46 -08:00
Justin Maggard
1a78a94f70 process: make max number of children (connections) configurable
At least some Panasonic clients try to open more than 5 simultaneous
connections to the server.  If we keep the default of 5 max children,
it results in choppy playback on those clients.

Make this setting configurable, and default to 50 max connections.
Our process is pretty lightweight, so 50 children should not be a
problem on most systems.
2014-03-03 13:32:20 -08:00
Justin Maggard
372afa1ae6 cosmetic: whitespace cleanup 2014-03-03 13:28:31 -08:00