1. 13 Jan, 2009 6 commits
    • Joe Milbourn's avatar
      input_curl: honour http_proxy_* config directives · 45598d50
      Joe Milbourn authored
      If http_proxy_{host, port, user, password} are provided in mpd.conf
      they are not passed on to libcurl. As a result mpd cannot stream from
      behind an http proxy.
      
      The attached patch `http_proxy.patch` makes the relevant calls to
      curl_easy_setopt(...) for all proxy configuration parameters, but is
      only tested for host and port.
      45598d50
    • Max Kellermann's avatar
      daemon: don't check the setsid() return value · 18cb3470
      Max Kellermann authored
      There is only one valid error condition for setsid(): when the current
      process is already the process group leader.  This is non-critical.
      18cb3470
    • Max Kellermann's avatar
      daemon: don't fork twice to daemonize · 25321297
      Max Kellermann authored
      To detach from the parent process, fork once and make the old process
      exit.  No need to do that twice.
      25321297
    • Max Kellermann's avatar
      playlist: implement Fisher-Yates shuffle properly · d8fc8ca7
      Max Kellermann authored
      MPD's shuffling algorithm was not implemented well: it considers songs
      which were already swapped, making it somewhat non-random.
      
      Fix the Fisher-Yates shuffle algorithm by passing the proper bounds to
      the PRNG.
      d8fc8ca7
    • Max Kellermann's avatar
      input_curl: use select() to eliminate busy loop during connect · e7c7e652
      Max Kellermann authored
      When decoder_run_song() (decoder_thread.c) waits for the input stream
      to become ready, it did that in a busy loop.  Add a select() call to
      input_curl_buffer() during connect/handshake (i.e. before the first
      chunk of body data was received), to let the CPU relax.
      e7c7e652
    • Max Kellermann's avatar
      decoder_api: don't ignore DECODE_COMMAND_STOP · d82061b7
      Max Kellermann authored
      When the decoder thread is waiting for free chunks in the music pipe,
      don't ignore the STOP command.  Just return dc.command without further
      checks.
      d82061b7
  2. 12 Jan, 2009 1 commit
  3. 11 Jan, 2009 4 commits
  4. 10 Jan, 2009 13 commits
  5. 08 Jan, 2009 8 commits
  6. 07 Jan, 2009 8 commits