1. 07 Nov, 2009 1 commit
    • Max Kellermann's avatar
      set the close-on-exec flag on all file descriptors · e3af0032
      Max Kellermann authored
      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.
      e3af0032
  2. 20 Oct, 2009 1 commit
  3. 13 Oct, 2009 4 commits
  4. 11 Oct, 2009 3 commits
    • Max Kellermann's avatar
      input_stream: use "goffset" instead of "off_t" · 727c301f
      Max Kellermann authored
      The "off_t" type may change when you enable or disable large file
      support on 32 bit platforms.  This caused severe ABI problems within
      MPD when we enabled LFS for the first time: two sources included
      config.h and sys/types.h in different order, and had different off_t
      sizes - leading to memory corruption because of ABI incompatibility.
      This patch attempts to get rid of all public "off_t" uses: it removes
      "off_t" from the input_stream ABI/API, and switches to GLib's 64 bit
      "goffset" type.  This may hurt 32 bit embedded platforms a tiny bit,
      but that's not even measurable.
      727c301f
    • Max Kellermann's avatar
      input/curl: don't abort if a packet has only metadata · af92b1c2
      Max Kellermann authored
      When a received chunk of data has only icy-metadata, there was no
      usable data left for input_curl_read() to return, and thus it returned
      0 bytes.  "0" however is a special value for "end of file" or
      "error".  This patch makes input_curl_read() read more data from the
      socket, until the read request can be fulfilled (or until there's
      really EOF).
      af92b1c2
    • Max Kellermann's avatar
      input/curl: moved code to fill_buffer() · 01655809
      Max Kellermann authored
      01655809
  5. 20 Sep, 2009 1 commit
  6. 28 Jul, 2009 2 commits
  7. 28 May, 2009 1 commit
    • Mathieu Rochette's avatar
      input/file: log message on error · 0dedfe7d
      Mathieu Rochette authored
      If a file is removed the library, next time mpd will try to play it it
      will result in an error 'ERROR: problems decoding some/file.ogg'.
      Nothing is written in log files (verbose mode or not)
      
      [mk: append strerror(errno)]
      0dedfe7d
  8. 28 Apr, 2009 1 commit
  9. 25 Apr, 2009 1 commit
  10. 27 Mar, 2009 1 commit
  11. 13 Mar, 2009 1 commit
    • Avuton Olrich's avatar
      all: Update copyright header. · 0aee49bd
      Avuton Olrich authored
      This updates the copyright header to all be the same, which is
      pretty much an update of where to mail request for a copy of the GPL
      and the years of the MPD project. This also puts all committers under
      'The Music Player Project' umbrella. These entries should go
      individually in the AUTHORS file, for consistancy.
      0aee49bd
  12. 09 Mar, 2009 1 commit
  13. 06 Mar, 2009 1 commit
  14. 02 Mar, 2009 4 commits