aboutsummaryrefslogtreecommitdiffstats
path: root/src/input (follow)
Commit message (Collapse)AuthorAgeFilesLines
* input/curl: implement a hard-coded timeout of 10 secondsMax Kellermann2011-08-261-0/+3
| | | | | Be sure to stop the operation at some point when the server isn't responding.
* input/curl: limit the receive buffer sizeMax Kellermann2011-08-231-0/+30
|
* Merge release 0.15.15 from branch 'v0.15.x'Max Kellermann2010-11-081-1/+1
|\ | | | | | | | | | | Conflicts: NEWS configure.ac
| * input/rewind: fix assertion failureMax Kellermann2010-11-081-1/+1
| | | | | | | | | | The assertion added in MPD 0.15.14 was too much, it failed when the MIME type of a stream was NULL.
* | Merge release 0.15.14 from branch 'v0.15.x'Max Kellermann2010-11-071-2/+4
|\| | | | | | | | | | | | | | | | | | | | | | | Conflicts: NEWS configure.ac src/decoder_control.c src/decoder_control.h src/input/rewind_input_plugin.c src/output_control.c src/output_thread.c src/player_thread.c
| * input/rewind: remove redundant NULL check before g_free() callMax Kellermann2010-11-051-2/+1
| |
| * input/rewind: add two assertionsMax Kellermann2010-11-051-0/+3
| |
| * input/rewind: fix double free bugMax Kellermann2010-11-051-0/+1
| | | | | | | | | | Duplicate the "mime" attribute of the inner input_stream object, instead of copying the pointer.
* | Merge release 0.15.13 from branch 'v0.15.x'Max Kellermann2010-10-112-4/+5
|\| | | | | | | | | | | | | | | Conflicts: NEWS configure.ac src/input/rewind_input_plugin.c src/output/httpd_output_plugin.c
| * input/rewind: enable for MMSThomas Jansen2010-09-281-2/+10
| |
| * rewind_input_plugin: Update MIME not only onceThomas Jansen2010-09-231-3/+4
| | | | | | | | | | | | | | The assumption that MIME type is set only once is not valid with CURL, as URL redirections may update the MIME type. This fixes bug #3044.
| * input/curl: fix version check for curl_multi_timeout()Max Kellermann2010-09-071-1/+1
| | | | | | | | | | | | | | According to the CURL web site, curl_multi_timeout() was added in version 7.15.4: http://curl.haxx.se/libcurl/c/curl_multi_timeout.html
* | Merge release 0.15.12 from branch 'v0.15.x'Max Kellermann2010-07-201-2/+17
|\| | | | | | | | | | | Conflicts: NEWS configure.ac
| * input/curl: remove assertion after curl_multi_fdset()Max Kellermann2010-07-201-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some users reported that MPD crashes when using a new CURL version with the threaded DNS resolver enabled. It seems that curl_multi_fdset() returns no file descriptor when the DNS resolver runs in another thread, so MPD does not have any event to wait for. On the CURL mailing list, somebody suggested to sleep for a fixed amount of time. This is not an elegant solution, because daemons should never have to sleep without waiting for an event. I hope the CURL developers will review the API and remove the threaded DNS resolver. Meanwhile, I'm removing the assertion in question, to allow those unfortunate users running the latest CURL version to continue using MPD.
| * input/curl: query timeout from CURLMax Kellermann2010-07-201-1/+18
| | | | | | | | | | Use curl_multi_timeout() to determine the select() timeout, instead of hard-coding one second.
* | Merge release 0.15.10 from branch 'v0.15.x'Max Kellermann2010-05-301-0/+3
|\| | | | | | | | | | | | | Conflicts: NEWS configure.ac src/input/mms_input_plugin.c
| * input/mms: initialize the "eof" attributeMax Kellermann2010-05-181-0/+2
| |
| * input/mms: fix memory leak in error handlerMax Kellermann2010-05-181-0/+1
| |
* | input/file, output/{fifo,recorder}: add O_BINARY to open() flagsMax Kellermann2010-05-201-2/+2
| | | | | | | | Windows compatibility.
* | input/ffmpeg: new input plugin using libavformat's "avio" libraryMax Kellermann2010-05-182-0/+196
| |
* | input/mms: removed empty method buffer()Max Kellermann2010-05-181-8/+0
| | | | | | | | | | input_stream_buffer() has a check for "buffer==NULL", so we don't need an explicit empty implementation.
* | input_stream: added attribute "uri"Max Kellermann2010-01-184-4/+4
| |
* | input_stream: added function input_stream_deinit()Max Kellermann2010-01-184-0/+4
| | | | | | | | All close() implementations must call this method.
* | input/rewind: enable the "rewind" wrapper for all non-seekable streamsMax Kellermann2010-01-042-15/+2
| | | | | | | | Don't limit the "rewind" input plugin to CURL streams.
* | input_stream: return allocated input_stream objectsMax Kellermann2010-01-016-134/+136
| | | | | | | | | | | | | | | | Major API redesign: don't let the caller allocate the input_stream object. Let each input plugin allocate its own (derived/extended) input_stream pointer. The "data" attribute can now be removed, and all input plugins simply cast the input_stream pointer to their own structure (with an "struct input_stream base" as the first attribute).
* | Update copyright notices.Avuton Olrich2009-12-3110-10/+10
| |
* | archive: use reference counting for archive+inputMax Kellermann2009-12-311-4/+1
| | | | | | | | | | | | | | Make the input_stream implementation hold a reference on the archive_file object. Allow the caller to "close" the archive_file object immediately, no matter if the open_stream() method has succeeded or not.
* | input/archive: don't initialize input_stream.readyMax Kellermann2009-12-311-2/+0
| | | | | | | | The archive plugin should decide this.
* | Merge vorbis+icy fixes from branch 'v0.15.x'Max Kellermann2009-12-304-181/+321
|\| | | | | | | | | | | | | | | | | Conflicts: Makefile.am NEWS configure.ac src/input/curl_input_plugin.c src/input_stream.c
| * input/curl: removed the built-in rewinding codeMax Kellermann2009-12-301-181/+10
| | | | | | | | This has been reimplemented in the "rewind" input plugin.
| * input/rewind: new input_stream wrapper to allow stream rewindingMax Kellermann2009-12-294-0/+309
| | | | | | | | | | | | | | | | | | | | | | | | This replaces the rewinding buffer code from the CURL input plugin. It is more generic, and allows rewinding even when the server sends Icy-Metadata (which would have been too difficult to implement within the CURL plugin). This is a rather complex patch for the stable branch (v0.15.x), but it fixes a serious problem: the "vorbis" decoder plugin was unable to play streams with Icy-Metadata, because it couldn't rewind the stream after detecting the codec (Vorbis vs. FLAC).
* | archive_plugin: use GError in the open() methodMax Kellermann2009-12-161-1/+1
| |
* | input/archive: check for archive_file_open() errorsMax Kellermann2009-12-161-0/+2
| | | | | | | | | | This fixes a NULL pointer dereference in case of archive plugin failure.
* | archive_plugin: wrap method callsMax Kellermann2009-12-161-3/+3
| | | | | | | | | | Make archive_file a "real" struct, extended by all plugins. Add the plugin pointer to it. Wrap all method calls in functions.
* | input_stream: return errors with GErrorMax Kellermann2009-12-154-60/+108
| |
* | input/archive: use g_path_is_absolute()Max Kellermann2009-12-151-1/+1
| | | | | | | | | | .. instead of manually checking pathname[0]=='/'. g_path_is_absolute() is portable.
* | Merge branch 'v0.15.x'Max Kellermann2009-12-151-0/+1
|\| | | | | | | | | | | | | | | Conflicts: src/archive/bz2_plugin.c src/archive_api.h src/input/file_input_plugin.c test/run_input.c
| * input/archive: close the archive file on errorMax Kellermann2009-12-151-0/+1
| | | | | | | | Fixed memory leak in error handler.
| * input/file: don't fall back to parent directoryMax Kellermann2009-12-151-18/+3
| | | | | | | | | | This code has never made any sense, and has broken some of the archive plugin.
| * input/lastfm: fixed variable name in GLib<2.16 code pathMax Kellermann2009-11-101-1/+1
| | | | | | | | Should be "lastfm_user", not "lastfm_username".
* | input/file: don't fall back to parent directoryMax Kellermann2009-12-151-18/+3
| | | | | | | | | | This code has never made any sense, and has broken some of the archive plugin.
* | input_plugin: method init() returns errors with GErrorMax Kellermann2009-12-141-1/+2
| | | | | | | | | | Not used by any plugin currently, but this eliminates the g_error() call in input_plugin_config(), so it's worth it.
* | include config.h in all sourcesMax Kellermann2009-11-123-1/+3
| | | | | | | | | | | | After we've been hit by Large File Support problems several times in the past week (which only occur on 32 bit platforms, which I don't have), this is yet another attempt to fix the issue.
* | configure.ac: require GLib 2.12Max Kellermann2009-11-101-0/+1
| | | | | | | | | | | | Drop the required GLib version from 2.16 to 2.12, because many current systems still don't have GLib 2.16. This requires several new compatibility functions in glib_compat.h.
* | fd_util: removed creat_cloexec()Max Kellermann2009-11-101-1/+1
| | | | | | | | Add a "mode" argument to open_cloexec() instead.
* | set the close-on-exec flag on all file descriptorsMax Kellermann2009-11-071-1/+2
| | | | | | | | | | | | | | | | | | | | | | Added the "fd_util" library, which attempts to use the new thread-safe Linux system calls pipe2(), accept4() and the options O_CLOEXEC, SOCK_CLOEXEC. Without these, it falls back to FD_CLOEXEC, which is not thread safe. This is particularly important for the "pipe" output plugin (and others, such as JACK/PulseAudio), because we were heavily leaking file descriptors to child processes.
* | mapper, update, ...: use g_build_filename(), G_DIR_SEPARATOR, ...Max Kellermann2009-10-201-1/+1
| | | | | | | | | | Try to be as portable as possible, use GLib path name functions and macros.
* | input/lastfm: removed obsolete last.fm input pluginMax Kellermann2009-10-132-494/+0
| | | | | | | | | | | | This has been replaced by the last.fm playlist plugin. The input plugin has never worked well, and was just a playground to experiment with the last.fm radio protocol.
* | Merge branch 'v0.15.x'Max Kellermann2009-10-131-1/+1
|\|
| * input/curl: fixed endless loop during bufferingMax Kellermann2009-10-131-1/+1
| | | | | | | | | | | | | | When the connection is lost while buffering, the CURL input plugin may enter an endless loop, because it does not check the EOF condition. This patch makes fill_buffer() return success only if there's at least one buffer, which is enough of a check.x