Commit Graph

3514 Commits

Author SHA1 Message Date
chme 30d43bef4f [player] Fix return value in volume_setrel_speaker if device is not
selected
2016-08-06 06:34:34 +02:00
chme 2ae94e8f82 [player] Fix return value in playback_prev_bh if source_open failed 2016-08-06 06:31:09 +02:00
chme cd9a3bae07 [player] Fix return value in playback_start_item if source_open failed 2016-08-06 06:29:55 +02:00
chme 21d2c95eeb [spotify] Fix return of playback_eot if spotify returns an error 2016-08-06 06:26:38 +02:00
ejurgensen 09e35abb83 Merge pull request #280 from chme/scandirectories2
[filescanner] Fix building directory structure with trailing '/'
2016-08-01 21:54:59 +02:00
chme 388c5f4311 [filescanner] Fix building directory structure with trailing '/' (second
attempt)
2016-08-01 21:27:05 +02:00
ejurgensen cbc3323111 [cast] Try to fix issue #270 by making a GET_STATUS if the normal reply to a LAUNCH does not arrive 2016-08-01 09:05:09 +02:00
ejurgensen 306dd47f1e [cast] Fix for issue #275 where gnutls returns the 4 byte prefix of
a Chromecast response together with the response message itself
2016-08-01 00:12:08 +02:00
ejurgensen 187ed6c1f7 [cast] Log raw replies when in DEBUG_CONNECTION mode 2016-07-31 23:36:27 +02:00
ejurgensen 1e02dc51fd [mpd] Modify output enum logging to show shortid as well 2016-07-31 23:28:03 +02:00
ejurgensen 561228d9f7 [misc] Add missing const qualifier 2016-07-31 23:27:57 +02:00
ejurgensen 2e4b5a70a5 Merge pull request #277 from chme/scandirectories
[filescanner] Fix building directory structure with trailing '/'
2016-07-31 07:56:15 +02:00
chme cebf07b2f8 [filescanner] Fix building directory structure with trailing '/'
Library directories with a trailing '/' (like '/srv/music/') lead to an
unbrowsable directory structure. The trailing '/' resulted in an update
to the library directory in the directories table with a parent_id
pointing to itself.
2016-07-31 07:41:11 +02:00
ejurgensen 3dbf6d2416 Merge pull request #276 from chme/mpdplay
Fix behavior for mpd commands play and playid during playback
2016-07-30 15:57:56 +02:00
chme 595f7c6091 [mpd] Fix copy/paste error in log message 2016-07-30 08:33:23 +02:00
chme e6b53cb88e [mpd] Fix mpd command 'playid' if player is already playing
While playing issueing command 'playid' starts playback of the song with
the given item-id (if this song is already playing, it starts from the
beginning).
2016-07-30 08:33:22 +02:00
chme 9af09c204d [mpd] Fix mpd command 'play' if player is already playing
While playing issueing command 'play' with a songposition -1 does noting
in mpd, with songposition > 0 it starts playback of the song at this
position (if this song is already playing, it starts from the
beginning).
2016-07-30 08:31:54 +02:00
ejurgensen ed03c90916 [mpd] Fix typos 2016-07-29 19:26:46 +02:00
ejurgensen 6064f14602 Merge pull request #274 from bjoernricks/anon-content-code
Allow anonymous access to /content-codes url
2016-07-14 10:02:22 +02:00
Björn Ricks 382459ce9b Allow anonymous access to /content-codes url
The content-codes url provides a mapping of dmap content codes to names, it's
types and sizes. It doesn't contain any private information and therefore should
be available to anonymous users too.
2016-07-13 19:52:58 +02:00
ejurgensen d3078c6534 [remote] Increase pairing success log level 2016-07-10 20:38:03 +02:00
ejurgensen a99d1b2038 [db] Add song_length to group info (fixes #265) 2016-06-11 23:10:13 +02:00
ejurgensen 547783d008 Merge pull request #268 from chme/threadexit
Refactor thread exit handling
2016-06-11 22:57:09 +02:00
chme c0c6cca79f [commands] Add some code comments 2016-06-11 10:56:27 +02:00
chme 32ac6c2ea9 [commands] Rename commands_cmdloop_break to commands_base_destroy and
free commands_base after breaking the libevent loop
2016-06-11 10:56:27 +02:00
ejurgensen 349c1f7fe6 Merge pull request #267 from chme/removesyncsource
[player] Cleanup: player clock is the only sync-source available
2016-06-11 10:55:30 +02:00
chme a9a656042b [player] Cleanup: player clock is the only sync-source available 2016-06-11 10:37:09 +02:00
chme 5258ee712c [commands] Added functionality to break the event loop of a command base 2016-06-11 09:52:31 +02:00
ejurgensen 3527113a9b [filescanner] Option to import iTunes smart playlists 2016-06-04 23:30:01 +02:00
ejurgensen 777c0c8d27 Merge pull request #264 from bjoernricks/allow-origin
Allow to add Access-Control-Allow-Origin header to responses
2016-06-04 20:19:25 +02:00
ejurgensen 05572dcac0 Merge pull request #259 from chme/commands2
Refactor inter thread communication
2016-06-02 22:26:53 +02:00
Björn Ricks 6b6a1e65e1 Allow to add Access-Control-Allow-Origin header to responses
Add a new general config setting allow_origin that is included as
Access-Control-Allow-Origin header in http responses. This allows to make http
request against forked-daapd from browsers with enabled CORS
(https://www.w3.org/TR/cors/) via JavaScript XMLHttpRequest.

Per default the setting is not defined and no Access-Control-Allow-Origin header
is included in the response.
2016-06-02 13:32:41 +02:00
chme 610ae6a048 [commands] Move function documentation to their implementation
Also adds some aditional code documentation and an attempt at making
command_cb easier to understand
2016-05-21 07:57:44 +02:00
chme 5dc1cba5c8 On deinit free event base before freeing command base and pipes 2016-05-21 06:48:02 +02:00
chme 6112c38220 [commands] do not cast return of calloc and allocate struct command on
stack if executed in sync
2016-05-21 05:59:45 +02:00
chme 3c9a7d9119 [player] Use generic commands for inter thread communication 2016-05-15 08:42:15 +02:00
chme 85d57394e5 [cache] Use generic inter thread commands util 2016-05-15 08:42:15 +02:00
chme dd192bd99c [spotify] Use generic commands util 2016-05-15 08:42:15 +02:00
chme 32944d7273 [worker] Use generic inter thread commands util 2016-05-15 08:42:15 +02:00
chme 3823900394 [filescanner] Use generic inter thread commands util 2016-05-15 08:42:15 +02:00
chme 4aacf487e8 [mpd] Use generic inter thread commands util 2016-05-15 08:42:15 +02:00
chme 9856536fd7 [commands] Add generic functionality for inter-thread communication
using libevent and pipes
2016-05-15 08:42:15 +02:00
ejurgensen 555da4b323 [docs] Update README, add Monkey's audio 2016-05-09 20:40:47 +02:00
ejurgensen 524d060b7a Bump version to 24.1 2016-05-06 19:50:14 +02:00
ejurgensen 2ac89301f6 ChangeLog for forked-daapd 24.1 2016-05-06 19:49:05 +02:00
ejurgensen 1cc4c034d0 [filescanner] Add support for Monkey's audio 2016-05-06 00:30:58 +02:00
ejurgensen 1fbb4b0d59 [transcode] Fix problem for file types where ffmpeg decode returns 0
It seems ffmpeg/libav reads a file type like Monkey's audio in large
chunks, so that each packet must be passed to the decoder multiple
times. The decoder will return 0 until the packet is completed. This
change makes forked-daapd able to deal with a return value of 0.
2016-05-06 00:23:07 +02:00
ejurgensen 9a56044c77 [misc] Explicitly check for pthread_setname_np/pthread_set_name_np
Seems there is no pthread_setname_np in OpenWrt
2016-05-05 19:39:15 +02:00
ejurgensen 95d0c25be3 [outputs] Forgot an include 2016-05-05 18:49:27 +02:00
ejurgensen 7c68eab11e [streaming] Log error message from write() 2016-05-05 18:48:47 +02:00