Commit Graph

715 Commits

Author SHA1 Message Date
d10293b038 autoconf: Use subdir-objects, to silence warnings from new autotools 2014-03-10 10:00:52 -07:00
10471aa29b portability: fix compiling on systems without iconv 2014-03-07 13:20:26 -08:00
a606012d23 Fix Clang compiler warnings. 2014-03-07 12:42:40 -08:00
546b12e1a9 portability: rework inline functions for clang compatibility. 2014-03-07 12:36:50 -08:00
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
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
b9404d1847 cleanup: remove unused tagutils code, and switch to standard int types 2014-03-06 17:08:21 -08:00
cb95ca6e06 Wrap up version 1.1.2. 2014-03-06 16:30:25 -08:00
993a4adbbc ssdp: improve debug logging 2014-03-05 13:56:50 -08:00
5cddc8fb4d print usage and bail if the user gives an unknown command line option 2014-03-03 16:04:46 -08:00
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
372afa1ae6 cosmetic: whitespace cleanup 2014-03-03 13:28:31 -08:00
6cef303fc1 try to ensure proper ownership of db_dir
If user has been set, try to ensure that db_dir is owned by that user.
If that fails, log an error.
2014-02-27 15:47:02 -08:00
4236d53b59 ssdp: add multicast membership as the individual interfaces come up
Previously, this was only done during startup, so interfaces that
came up later wouldn't have been added.
2014-02-26 15:09:21 -08:00
fe7c26da2f ssdp: send a full byebye + alive set when a new interface comes online
If an interface comes online after startup, we really need to send a
complete byebye + alive set on that interface, but we don't want to do
it for other interfaces.  So do it as the interfaces come up, and
skip it for interfaces that existed before the reload.
2014-02-26 15:04:46 -08:00
a7c8ffb88d cosmetic: whitespace cleanup 2014-02-26 12:37:14 -08:00
ea9a530a3a clients: keep generic device records
Now that we display connected clients in the status page,
it makes sense that we show all of them, instead of only
recognized device types.
2014-02-26 12:34:15 -08:00
005cb0bd30 Fix uninitialized access when adding multicast membership.
Thanks Keith for pointing this out.
2014-02-18 10:39:43 -08:00
65fb740414 upnpsoap: Support searches specifying @parentid = 0. 2014-02-04 12:03:57 -08:00
a3252bd2dd minissdp: Use struct ip_mreqn for multicast membership if it's available. 2014-02-03 15:02:30 -08:00
1e7fe1413c scanner: Avoid largeish stack allocations in recursive function. 2014-02-03 12:34:48 -08:00
67fd1fe45a getifaddrs: Fix building on systems without IFF_SLAVE. 2014-02-03 11:57:34 -08:00
582dd80f3b Add "albumartist" tag support for vorbis (flac). (Thanks SF user shimikano) 2014-02-03 11:47:16 -08:00
d86fd22655 Fix Italian translation
Signed-off-by: Justin Maggard <jmaggard10@gmail.com>
2014-02-03 11:43:40 -08:00
5b35d3a165 scanner: Add an extra level if there are multiple media locations.
Before, the top level of folder browsing could be messy if you were
using multiple media directories.  This should tidyt things up.
2014-01-31 17:43:58 -08:00
16b0963a5b Add fake X_MS_MediaReceiverRegistrar RegisterDevice support. 2014-01-31 16:25:43 -08:00
d248cd3a43 Fix conflicting definition for unescape_tag(). 2014-01-31 15:46:48 -08:00
fc6b47fe6a upnpsoap: fix incorrectly formed Samsung GetFeatureList reply
Bug raised here https://sourceforge.net/p/minidlna/bugs/210/, and also
mentioned in http://sourceforge.net/p/minidlna/discussion/879956/thread/34276163/.
However patch given needs to correctly escaped to work otherwise the
renderer will get stuck in an endless loop.

Signed-off-by: Spencer Oliver <spen@spen-soft.co.uk>
2014-01-31 15:35:30 -08:00
f26a9217e4 metadata: handle escaped .nfo files
Some nfo files may contain xml escape chars, as generated by MediaElch.
This will remove any escape chars found so that they can be correctly
handled by minidlna.

Signed-off-by: Spencer Oliver <spen@spen-soft.co.uk>
2014-01-31 15:33:51 -08:00
f5ebc22eeb utils: add unescape_tag function
This is added to remove any escape chars from a string.
This will be used in a pending patch, that correctly reads .nfo files that
contain escape chars.

Signed-off-by: Spencer Oliver <spen@spen-soft.co.uk>
2014-01-31 15:33:51 -08:00
7e6b015b05 upnpsoap: fix samsung bookmarks
This makes the bookmark functionality work as expected on Samsung E series.
Adapted from http://sourceforge.net/p/minidlna/discussion/879956/thread/1a711ef6/ and
http://sourceforge.net/p/minidlna/bugs/197/.

Signed-off-by: Spencer Oliver <spen@spen-soft.co.uk>
2014-01-31 15:33:51 -08:00
e2c73f163d clients: merge samsung Series C client id
A Samsung TV cannot be reliably detected by checking for "SEC_HHP_TV"
User Agent. Only the first part can be guaranteed, eg. "SEC_HHP_" as the rest
can be changed by the end user.

Signed-off-by: Spencer Oliver <spen@spen-soft.co.uk>
2014-01-31 15:33:51 -08:00
ff76966a1c uuid: use CLOCK_REALTIME if CLOCK_MONOTONIC not available
Older versions of glibc may not have CLOCK_MONOTONIC, this is certainly the
case for the 2.3.2 based terastation libc.

Signed-off-by: Spencer Oliver <spen@spen-soft.co.uk>
2014-01-31 15:33:51 -08:00
b0c1dea56b upnpsoap: fix some clients playing artwork instead of movie
While playback on an Samsung E Series TV is ok, other clients such as VLC
and vplayer (android) attempt to play the artwork rather than the movie.

The issue was traced to minidlna serving the artwork res before the movie res.
Other dlna server's were observed and found to the send the movie first then
the artwork.

Swapping the order seems to keep all tested clients happy.

Signed-off-by: Spencer Oliver <spen@spen-soft.co.uk>
2014-01-31 15:33:51 -08:00
2c33d4149d build: fix out of src tree builds
Signed-off-by: Spencer Oliver <spen@spen-soft.co.uk>
2014-01-31 15:33:51 -08:00
f119cfe1a6 Support @parentID in SearchCriteria. 2014-01-31 13:18:36 -08:00
dda5b1c19d Mark X_MS_MediaReceiverRegistrar variables that are supposed to be evented as such. 2014-01-29 18:47:57 -08:00
58b2c604d8 Add configuration include file support. 2014-01-21 16:52:05 -08:00
6f7b5761c6 Fix memory leak in AAC tag parsing. 2014-01-16 17:09:51 -08:00
9eec5b8cac Fix possible memory leak in error conditions when saving resized album art. 2014-01-16 16:07:53 -08:00
a21bbe557d Fix a couple file descriptor leaks. 2014-01-16 13:11:54 -08:00
2aedabb52c Including <linux/netlink> requires <sys/socket.h> on some systems. 2014-01-16 12:08:37 -08:00
3f4877cf2f Add a new force_sort_criteria option, to globally override the SortCriteria value sent by the client. 2014-01-07 11:30:15 -08:00
a75bdadce1 Show client status on our basic presentation page. 2014-01-07 10:14:26 -08:00
eeffcf47dd Wrap up 1.1.1 release. 2013-11-01 18:06:41 -07:00
9312583101 Clarify license terms on new files. 2013-11-01 18:05:31 -07:00
622b0b7411 Merge branch 'for-justin' of git://github.com/BenoitKnecht/minidlna 2013-11-01 17:57:00 -07:00
0cc4fd980d Generate the generic Linux init script with the configured sbin path. 2013-11-01 17:44:41 -07:00
a9c299888d Conformance: We shouldn't give an event URL if there are no evented variables. 2013-10-22 19:10:16 -07:00
0700cf9774 Fix up a few conformance issues with latest testing tools. 2013-10-22 19:05:22 -07:00