Commit Graph

853 Commits

Author SHA1 Message Date
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
8d6ce5e8b5 Handle new H.264 profile in recent ffmpeg versions. 2013-10-22 19:02:02 -07:00
e00d462a75 Add debug messages when sending ssdp:alive/ssdp:byebye packets. 2013-10-22 18:56:07 -07:00
c96e6e2adb Skip the initial ssdp:alive packets when initially registering our network
interfaces during startup, so the byebye's can come first.
2013-10-22 18:50:09 -07:00
2e68335430 * Filter out hidden files and folders. 2013-10-10 00:04:25 -07:00
bb163eb65f Fix various inotify issues with deleting entire folder contents, and then re-adding content back to the same folder. This should be the cause of '(null)' folder names. 2013-09-18 15:29:59 -07:00
701b2efacd Update NETGEAR icon images to match the new branding. 2013-09-18 15:28:52 -07:00
3995cbdac4 Limit the number of simultanious children
Make sure minidlna cannot fork more than 5 children, to avoid becoming a
fork bomb.

Reported-by: Rinat Ibragimov <ibragimovrinat@mail.ru>
2013-06-20 19:31:34 +02:00
862f6b986c Update French translation 2013-06-20 19:27:16 +02:00
c48addf397 Update po files 2013-06-20 19:27:16 +02:00
a4a301d1df Set the conversion indicator on fake resources for Sony BDP's. New models support most of these natively, and don't like fake resources. 2013-06-12 23:25:30 -07:00
8cb34a58ba Fix deprecation warning about AM_INIT_AUTOMAKE. 2013-06-11 15:37:02 -07:00
1c34c6c594 Update help output shown by "minidlna -h".
Reported-by: (and original version by) Benoît Knecht <benoit.knecht@fsfe.org>
2013-06-11 15:24:53 -07:00